ID:267214
 
my AI's wont walk away from the bombs! i have
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
Do you want them to lay a bomb, then walwk away from it?
In response to Garthor
yes, and i also want them to walk away from other bombs that they see....
In response to Magnus VI
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.