mob
NPC
icon = 'm.dmi'
icon_state = "4"
wander = 1
mob
var/wander
New()
if(wander) walk_rand(src)
..()
ID:174716
Jul 24 2003, 4:32 am
|
|
I'm making a demo and need to know how to make random walking to sleep for 30 ticks. How would I do that?
|
<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>