
Red are targets.
Yellow are the NPC spawn points.
The red dots (A) represent nearby enemies. Both B's and C represent buildings that may or may not have enemies in them.
Now what I'm trying to accomplish is this:
I want the npcs (yellow) to spawn and fight any nearby targets (A). If no nearby targets exist, I want them to move to the nearest B target if it is occupied. If the nearest B target is not occupied then I want the npc to move to the C target. If no A target, B target, or C target exists, then I want the NPC to disappear (since they are antlions, burrow)
I want to try to get them to attack the nearby targets (A) through some type of AI entity rather than using triggers. The B and C targets I believe will need triggers though.