CLEO Help [Script] Get facing position

CLEO related
Status
Not open for further replies.

proteh

Member
Joined
Jun 18, 2013
Messages
21
Reaction score
0
How would I get the position a player or a car is facing? Like Norht, South, West or East.

Thanks in advance.
 

proteh

Member
Joined
Jun 18, 2013
Messages
21
Reaction score
0
0407: store_coords_to 1@ 2@ 3@ from_car 4@ with_offset 0.0 1.0 0.0 // Left/Right, Forward/Back, UP/DOWN

[...]
if and
Player.Defined($PLAYER_CHAR)
Actor.Driving($PLAYER_ACTOR)
then
03C0: 4@ = actor $PLAYER_ACTOR car
0407: store_coords_to 1@ 2@ 3@ from_car 4@ with_offset 0.0 1.0 0.0 // Left/Right, Forward/Back, UP/DOWN
end
if and
0A9A: $HFILE2 = openfile "pos1.TXT" mode 119 // IF and SET
0A9A: $HFILE3 = openfile "pos2.TXT" mode 119 // IF and SET
then
0A9E: writefile $HFILE2 size 1 from 1@
0A9E: writefile $HFILE3 size 1 from 2@
end
0A9B: closefile $HFILE2
0A9B: closefile $HFILE3
[...]

Thanks, what would the output of those files be? I get random characters when using this script...
 
Status
Not open for further replies.
Top