I am searching for a way to be able to detect if a monster is spawned walking/flying along a path or spawned idling.
Let me try to explain:
I would like to be able to detect in the monsters spawn function (example "monster_army"), if this monster is walking along a path or is only idling on a spot.
I need to do it in the initial run of the monsters spawn function, because I need to manipulate the monster accordingly.
I noticed that a 'target' is always set for a walking monster, besides the regular parms (like origin, spawnflag and angle).
Could I check for a 'target' ? If the monster has one, can I be sure that it is walking (and not idling) ?
Like vanilla Quake checks for the zombie´s spawnflag if it is crucified or not:
if (self.spawnflags & SPAWN_CRUCIFIED)
Could this work:
Code: Select all
if (self.target)
// monster is walking
I am not a mapper, so I need my code to be able to run (on) existing maps.
Thank you for your help and tips.