Hi folks,
Let's say I have a game with a hero, and multiples ennemies with the line of sight behavior. I want to trigger an event when all the ennemies can't see the hero. All of them.
Is there an easy way to achieve that ?
There must be an easier way but..
system every tick - set Globalvariable = enemy.count
for each enemy
enemy has not line of sight - subtract 1 from GlobalVariable
system compare two values - GlobalVariable = 0
add action
Develop games in your browser. Powerful, performant & highly capable.
Thank you very much. It works fine !