Spawn As A Default Player Character
When I start the game I want to spawn as the default player character. This works if I play in editor. When I play the packaged game or Standalone game, I spawn as a spectator. I set:
In the constructor of MyGameMode class. But I still spawn as a spectator, I also never am able to leave spectating mode. Is there something I am missing?
asked Oct 11 '16 at 05:35 AM in C++ Programming
If I'm understanding your question correctly, you're looking to set your character class as the Default Pawn for your Game Mode.
Here's an example of my game mode's constructor where I did this with my player class:
This will allow you to set the Default Pawn, which is the class that you will automatically possess upon entering any play mode. You'll just need to replace APlayerCharacter with whatever the class is that you'd like to be your default pawn.
Let me know if that's what you're looking for.
Have a great day
Follow this question
Once you sign in you will be able to subscribe for any updates here