CLEO Help Assign $Player_Actor to variable?

CLEO related
Status
Not open for further replies.

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
Is it possible? So for example I could assign $Player_Actor to 5@ and get my position by:
00A0: store_actor 5@ position_to 1@ 2@ 3@
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
Hmm i tried 5@ = Actor.EmulateFromPlayer($PLAYER_ACTOR) but it gives me warnings


07D6:  8@ == $GIRLFRIEND // @ == $ (int)
According to http://gtag.gtagaming.com/opcode-database/opcode/07D6/ this opcode is only a check


Btw I found a way
//0AB1: call_scm_func @PlayerActor_to_var 1 Actor_handle $PLAYER_ACTOR Store_variable_to 0@
:playerActor_to_var
00A0: store_actor 0@ position_to 1@ 2@ 3@
0AB2: ret 1 0@
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
monday link said:
Hmm i tried 5@ = Actor.EmulateFromPlayer($PLAYER_ACTOR) but it gives me warnings
Because you can't emulate an actor from another actor.
Correct use is  5@ = Actor.EmulateFromPlayer($PLAYER_CHAR)
 
Status
Not open for further replies.
Top