I want to use some of the features of the AIController for my player. Such as behavior trees.
My Game’s player controller is an EmptyPlayerController which has a simple pawn with no mesh. On Event Begin Play, I spawn an PlayerAIController which has a character pawn.
This works. When I click the game, my EmptyPlayerController instructs the ai controller to move its pawn to the location.
However, I’m having trouble getting the third person camera to work properly.
Before I tried having the player control an AI controller, I had a SpringArm with a camera setup in the components of the character. That worked well, as soon as I hit play I was in the third person view.
I’ve tried doing the same now, having a camera in the character that the AIController has, but that didn’t work. Same thing with adding a camera to the components of the empty pawn that the regular player controller has, but no dice.
I get this seemingly default camera at 0,0,0.