I want to create an AI system for the enemy (flying drone) but I don't know how to create the logic and how to use the events properly for this.
What I am trying to do is have every enemy patrol from a flag to another in a state called "patrolState".
If the player is in the LOS of the enemy I want to chase him and when is closer to him, shoot ("chasingState").
Some help would be much appreciated.
I've started to create this here: