B Badonga Active member Joined Aug 5, 2013 Messages 71 Reaction score 0 Aug 23, 2014 #1 Hey, why isn't this working for me: Code: if 0597: actor $PLAYER_ACTOR crouching //blablabla It always returns true even when I am not crouching. Is there a way to get a condition if I am crouching?
Hey, why isn't this working for me: Code: if 0597: actor $PLAYER_ACTOR crouching //blablabla It always returns true even when I am not crouching. Is there a way to get a condition if I am crouching?
T TheZeRots Expert Joined Dec 21, 2013 Messages 1,247 Reaction score 1 Aug 23, 2014 #2 Code: {$CLEO .cs} 0000: NOP :CROUCHED wait 0 if 0597: actor $PLAYER_ACTOR crouching else_jump @CROUCHED if key_down 49 else_jump @CROUCHED 0ACD: show_text_highpriority "CROUCHED M8" time 1337 jump @CROUCHED Use it like this. Works like a charm! Upvote 0 Downvote
Code: {$CLEO .cs} 0000: NOP :CROUCHED wait 0 if 0597: actor $PLAYER_ACTOR crouching else_jump @CROUCHED if key_down 49 else_jump @CROUCHED 0ACD: show_text_highpriority "CROUCHED M8" time 1337 jump @CROUCHED Use it like this. Works like a charm!