ID:174716
 
I'm making a demo and need to know how to make random walking to sleep for 30 ticks. How would I do that?
mob
NPC
icon = 'm.dmi'
icon_state = "4"
wander = 1


mob
var/wander
New()
if(wander) walk_rand(src)
..()
You mean something like this?

<code>mob/var wander = 1 wander_delay = 30 mob/New() ..() if(src.wander) spawn() src.Wander() mob/proc/Wander() while(src.wander) step_rand(src) sleep(src.wander_delay)</code>