Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setInterval(function(){
- if(!character.rip) return; //Stops the code if character isn't rip.
- if(character.rip) //The character is RIP, character.rip = true
- {
- var lastX = character.real_x; //Saves last X-Position to the variable lastX
- var lastY = character.real_y; //Saves last Y-Position to the variable lastY
- respawn(); //Respawns the character
- smart_move(lastX, lastY); //Moves to the last coordinates after respawn.
- }
- }, 15000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement