Moving the Character's Group in Formation

Well, i am not sure but every pawn should ask to the player where is his “formation location”
as you have seen i made an array out of the formations so every pawn should be sure of his place in the team , lets say you have 4 panws
Add a variable inside and set it to 1,2,3,4.
So you can :
Cast to the player OR make the player say to the pawns
Which position should every member take.
So Pawn 1, will ask for Formation_location N1
So Pawn 2, will ask for Formation_location N2

Here a video about ai movement that i found useful

2 Likes