CLEO Help help with distance from ground

CLEO related
Status
Not open for further replies.

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
Code:
{$CLEO .cs}


0000:


repeat
wait 10
until 0AFA:


while true
wait 0

0819: 8@ = actor $PLAYER_ACTOR distance_from_ground

        if 8@ <= 0.0
        THEN
        chatmsg "wors" -1
        end
        end

why not working? nothing happens
 

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
it is working if i put 1065353216 over 0.0
why? should not be 0.0 the distance from ground? why it is that number

later edit//

found out that opcode 8818: actor $PLAYER_ACTOR in_air it's a better choice :D
 
Last edited:
Status
Not open for further replies.
Top