ID:170616
 
could anyone offer me a little help by way of making the characters mob stand still for an amount of time? ie if the character was sleeping?

any help would be absolutley grand

thank you.
mob/var/B
mob/verb/Stun(M as mob in oview())
M.B=1
mob/Move()
if(!src.B)
..()
Well one way would be to play with mob/Move().

mob/var/sleeping = 0

mob/Move()
if(!src.sleeping)
..()


Now each time you put them to sleep, change their sleeping variable to 1. And when they wake up, make the sleeping variable 0.
In response to Artekia
thanks guys, thats awesome.