I'm creating a game based on Until We Die and I'm having difficulty with a mechanic.
I want that when my character passes by an NPC, he gives a command and the NPC starts following him... He will do this with several NPCs, forming a single-file line.
Then, when passing by a tower, I want to be able to give a command to the first NPC in the line. This NPC will go to the tower and the line should move forward.
I've been trying for days to implement this mechanic, simulating movements with the platform behavior, and I've also tried using the pathfinder, but I can't get it to work. Please help me.