I’ve just build my enemy AI that can patrol , chase , Attack using FSM (Finite State machine) but now I want : if one of the enemy detect a target then the other enemies join him for attack
thank you!
I’ve just build my enemy AI that can patrol , chase , Attack using FSM (Finite State machine) but now I want : if one of the enemy detect a target then the other enemies join him for attack
thank you!
It sounds like you would just want to trigger the state change for all enemies near the enemy that gained line of sight right?
So you could Physics.OverlapSphere when one enemy gains line of sight, find all enemies that are in that radius, then trigger the state change on all of them.