does someone know an easy way to let a crowd of NPC’s form a certain shape? Like an army of Soldiers getting in formation (like in a strategy game) or just pedestrians coming together and gather in groups, forming a Letter or a Logo. The Best way would be if I wouldn’t have to set every single goal for every NPC but could command them all together, so I can use different numbers and a large quantity of people, also different shapes at will.
Create an separate Formation actor with many “slots” (be they sockets, or scene nodes, or whatever.)
Tell each Pawn to seek the position of one “slot” in this formation (obviously, only one Pawn per slot) using a simple AI controller subclass.
Then start moving the Formation around, and the behavior of each of the Pawns would be to start moving to the position of the slot in the Formation.
In the AI controller everything works off world location.
if you don’t care who goes to what spot, the formation actor is a great idea.
If this is for a cinematic that won’t do. You need to be able to repeat with the same actor going to the same spot, so i would suggest individual markers. Or even just using sequencer…