How do I assign a Spawned AI Controller, to a Spawned Pawn?????
I was told for each Character Pawn I have spawned into my Game, I will need an additional AI controller spawned with it..
Ok so if I were to spawn an AI controller using blueprint how do I then "Assign it" to a specific Pawn in my game?
Really really would appreciate any help
Ok after repeatedly asking this question in different forms for 3 days it finally clicked, I understand now, I see the light.
For everyone else making an RTS game if you want to talk to your Character pawns that you have spawned, its easy.
Step 1: Spawn your Character Pawns any ol' way you want. Make sure to check "Disabled" for "Auto Possess AI" in your characters "Pawn" setting's.
Step 2: When you select the actor for the first time by a direct click or a selection Rectangle, using the Spawn Actor node, spawn another generic AI Controller into the world followed by a "Possess" node., the target is the Controller you just spawned, and the pawn is the Character you wish to command (Which is just Self if your clicking it directly and using the "Event Actor on Clicked event").
So when you click on a new character it creates its AI controller, and then you possess that pawn with that controller, and then you are able to communicate directly with that pawns controller, and therefore that pawn.
Follow this question
Once you sign in you will be able to subscribe for any updates here