I'm trying to understand how I can call functions for each member of a family that meets certain conditions.
In this example, I want all members of the enemies family to move away from the player if they have LOS. Enemies to the right of the player are moved using a 'simulate' action. Enemies to the left of the player are moved using a 'simulate' action inside function.
When I move player to the right, all instances of enemies that have LOS move to the right. Bet when I move to the left, only once instance moves.
It seems that functions only apply to one family member at a time. How can I make it so that all enemies to my left move using my function?
filehosting.org/file/details/943049/testProjv1.c3p