mob
verb
FreezeAMob()
var/mob/M = usr.enemy
M.Immobile=1
sleep(200)
M.Immobile=0
Problem description:
I was wondering if this code could cause problems of someone being 'stuck' forever? I'm trying to figure out if say I cause someone to be immobile and then log out before the 20 second delay. Will they still be immobile due to me and be stuck in that state? Should I fix this by making it a proc instead of a verb? Or perhaps using spawn() instead of sleep()?
A fairly simple fix is to simply make Immobile a tmp variable so that it isn't saved, preventing the players from getting locked up.