mob/AI
New()
LifeCycle()
proc/LifeCycle()
var/dir = pick(NORTH,SOUTH,WEST,EAST)
walk(src,dir,2)
sleep(4)
walk(src,0)
src.lay_bomb()
for(var/obj/bomb/O in view(src))
walk_away(src,O)
spawn(5)LifeCycle()
but they wont walk away
ID:267214
![]() Jan 11 2003, 2:02 pm
|
|
my AI's wont walk away from the bombs! i have
mob/AI but they wont walk away |
![]() Jan 11 2003, 3:19 pm
|
|
Do you want them to lay a bomb, then walwk away from it?
|
Well, the easiest way to get them to walk away from their own bomb, is in the bomb laying proc, return the bomb. So, if the bomb is var/bomb/B, you would <code>return B</code> at the end. Then, you can just use <code>var/bomb/Z = LayBomb()</code> and then walk away from Z. Walking away from other bombs will be a little bit harder, and I don't feel like explianing it to you. Fool around a bit.
|