justn Posted August 21, 2014 Share Posted August 21, 2014 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 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now