Camera on wrong target when using Spawn AI from Class (Third Person Character)

Please help solve-- repeat problem for the AI-confused confused (me). Happens in every project; Something I am not getting here so created a clean build with lots of pictures; I seem unable to solve this one.

First picture is the basic setup – I’ve created an actor blueprint that I wish to spawn a third person character; perform a Move To Location operation on that character; and have the camera follow the spawn (if only it would); seems I can either have the camera behind the spawn; or I can have an AIController; I can’t seem to have both (error checking reports AI Controller Invalid – see blueprint). Only way I can seem to get the camera behind the spawn is if I go to blueprint for ThirdPersonCharacter and select auto-possess, but that breaks my ability to get the AI controller.

I should note that I am seeing double of everything – thus I added the DoOnce statement – no help there; I also tried using index of 1 in each of the gets from the getallactorsofclass statements; anything but 0 fails.

I’ve tried possess; unpossess; and even set viewport target with blend. In many combinations; Still lost.

alt text

Okay I basically solved this; will paste the solution blueprint for others that might need it. If you look carefully at the SetViewTargetWithBlend you will notice I referenced the playercontroller; even though I have no use for it. I plan to use the ai spawned character instead; I rationalized this as setting the player’s viewport – not setting the controller to that viewport. Makes some sense from that POV.

Anyways, I am still getting a double spawn that I can’t explain, but hoping that is an artifact of the starting package that I do not quite understand – will try it back in my real project and will hope it does not remain an issue. So marking this as solved for now.