ID:158984
 
ok, so for my AI,
it's spawned by walking over turf,
when It's spawned i'd like it to engage the player who spawned it,
however, if the player who spawned it runs away, or gets away, I'd like the AI to delete itself.
whats the best way to do this?
On creation, set the spawner to a "target" or whatever variable for the mob that spawned it.

Then do a while() check to get range (oview() comes to mind), chase the target (spawner) accordingly, and whenever you get out of the while AND the spawned monster is alive, delete it.
In response to Mysame
Maybe as an alternative, make it so every time the AI moves it will check, instead of a while() loop.