ID:167869
 
i dont know how to pause yourself during the code, like for resting. I'm helping Saiyan Kirby with his game and i wanted to use the pausing for Water Prison Jutsu. I'm a noob at coding if you're wondering...
If what you mean by 'pausing yourself' is locking the player of movement, you can always do this:

mob
var/locked = 0
Move()
if(locked) return 0 // deny movement if they are locked
return ..() // otherwise, move normally


To lock the mob, set their locked variable to 1. Note that any movement procs will not work unless you set its loc yourself, so if you want to just deny the player from making their mob move, you should deny it at the client/Move() level.

~~> Unknown Peroson
In response to Unknown Person
Thanks!