ID:175776
 
Please may I have the code to make NPC's do Random Movement the Whole time.
mob
Whatever
New()
spawn(10)
Random_Walk()

mob/proc/Random_Walk()
while(src)
step_rand(src)
sleep(rand(10,30))

<font color=FF0000>~Fint~</font>
In response to Fint
Thank you!
In response to Fint
Fint wrote:
mob
Whatever
New()
spawn(10)
Random_Walk()

mob/proc/Random_Walk()
while(src)
step_rand(src)
sleep(rand(10,30))
----------------------------------------------------
I tried the code and got
NPC.dm:8:error:10:value not allowed here
NPC.dm:9:error::empty type name (indentation error?)
In response to Gokuss4neo
This sould working just fine, anyone knows whats wrong?
Gokuss4neo wrote:
Please may I have the code to make NPC's do Random Movement the Whole time.

The Code