Spawning APawn C++

Hello All!.

Put simply: how the hell do I spawn a pawn, my ACharacter, and then possess it? I can spawn an AActor but AActor cannot be passed into the possess().

This is driving me nuts, I’ve been trying to do this for a week now and none of the info I can find helps.

Gimme the code, please. I have tried this many times and am pretty sure I have tried what you have said. Be nice to see the code you use so I can double check. Also I’m calling this from the PlayerController itself and I’m trying to spawn my characters’ blueprint.

1 Like

Example usage and Result (to lazy to setup inputs in C++ ;P):

Thanks for that. Appreciate it.