Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setInterval(function(){
  2.     if(!character.rip) return; //Stops the code if character isn't rip.
  3.     if(character.rip) //The character is RIP, character.rip = true
  4.     {
  5.         var lastX = character.real_x; //Saves last X-Position to the variable lastX
  6.         var lastY = character.real_y; //Saves last Y-Position to the variable lastY
  7.         respawn(); //Respawns the character
  8.         smart_move(lastX, lastY); //Moves to the last coordinates after respawn.
  9.     }  
  10. }, 15000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement