How can i make NPC's have a set path i found a demo for it ages ago but i forgot what it is called...
please help i know you will :-p
thanks :-D
ID:267653
![]() Aug 10 2003, 9:46 am
|
|
yeah i copied it into my thing starting from the new() cause i got the monster part in all ready and i copied it from byond now here it is
mob/NPC/slime icon = 'monsters.dmi' icon_state = "slime" New() .=..() spawn(1) MovePath() proc/MovePath() step(src,EAST) sleep(20) step(src,NORTH) sleep(20) step(src,NORTH) spawn(20) MovePath() that is just copied and when it is copied from byond it goes strange cause of the tabs (you might know that) that is what it is like in byond |
mob/monster
//be sure to have its icon
New()
.=..()
spawn(1) MovePath()
proc/MovePath()
step(src,EAST)
sleep(20)
step(src,NORTH)
sleep(20)
step(src,NORTH)
spawn(20) MovePath()
Hope that helps
<font color=red>Rifthaven