Jump to content

how to remove infinity run


lcd12321

Recommended Posts

When a player spawns, you can set his element data ( run limits ) to 100 ( or any other number u like )... bind your key to 'w' or any button.. so when the player holds the button which was binded.. set a timer.. set the element data ( run limits ) minus 1..and in that timer, u can check if the element data ( run limits ) is 0.. and if it is.. then do what u want..like set a animation or anything like that :P

NOTE: when the player releases the binded button.. you would need to kill the timer

That's how I would make it.. heres codes:

setElementData 
getElementData 
bindKey 
setTimer 
-- and other functions so when the player's element data ( run limit ) gets to 0 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...