I'm trying to set AI for my enemies to hunt down specific NPC classes one by one in order,
eg: | System: Every tick | Enemy1: Set Angle Toward: NPC1.X NPC1.Y
| NPC1: is Alive |
Alive: is a boolean which detects if the NPC1 health is equal to or below zero.
What I want it to do, is after all instances of NPC1 are destroyed (Alive = False) My enemy AI switches to follow NPC2.
I tried by doing;
| System: Every tick | Enemy1: Set Angle Toward: NPC2.X NPC2.Y
| NPC1: X is Alive | (Inverted)
I'm not sure why this didn't work, since I have another event in my sheet which says:
|NPC1: X is Alive| NPC1: Destroy.
And that works. But when I add the boolean condition onto another it seems to not work
On a separate question, is there a way to;
Set Angle Away From Position?
Before you say "invert the values" I want to use this to set my "NPC's" to run away from the Enemy's. ATM I just have them all running in Random(360) directions. Since inverting the values only works for unchanging values, is their an equation or action or something that inverts the values for me?