It has been a few days since I introduced Playmaker.
Some FSMs are functioning for now.
However, I encountered difficulties with an FSM I am currently trying to create and need assistance.
I am attempting to create an FSM where enemy NPCs patrol.
Among that, I want to create an FSM where enemy NPCs follow the enemy NPC leader, but it’s not going well.
I have assigned a "Leader" tag to the enemy NPC leader, and based on that, I set the target to the leader and move it using "Set Agent Destination."
However, it ends up targeting an enemy NPC with the "Leader" tag that is far away.
I want to target only the nearest enemy NPC with the "Leader" tag.
However, I couldn't find an action to select the "nearest" one (at least I don’t see one).
What method could solve this problem?
I would be grateful for your advice.


