Posts: 254
Threads: 36
Joined: Nov 2011
Reputation:
0
Hello, Im scripting a thing where if you jump to many times in a row, you fall over.. but i cant seem to get it right.. can someone please help me? Like show me how i would set it up correctly?
Thanks,
Josh
Posts: 6,129
Threads: 36
Joined: Jan 2009
Create a variable and plus 1 to it each time someone uses KEY_JUMP in OnPlayerKeyStateChange, then when it finally reaches the amount of times, apply an animation like the fall_over one to the player.
Posts: 254
Threads: 36
Joined: Nov 2011
Reputation:
0
I did create the variable.. i used PlayerPressedJump, then when i put for when they press it, i put PlayerPressJump++ Is this wrong??