In the third person c++ template project, I noticed that there is a network player start and a character blueprint.
- If I delete the character blueprint , the game starts at the network player start.
- If I delete the network player start and the character blueprint, the game starts at the location of the camera inside the editor
- If I delete the network player start , the game starts at the character blueprint
- If I place 2 character blueprints (same blueprint character), I start from the last placed character location
So I noticed that even without a player start, the game starts from where ever the character blueprint was placed in the level.
But when I do it in a blank c++ project, and delete the player start and place a character blueprint inside the game, the game just spawns from the camera location inside the view port and not from the location of where I placed the character blueprint.
I cannot find out how to do this.
I’ve set this in my game mode
AProjectHGameMode::AProjectHGameMode()
{
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/Character/Blueprints/MyCharacter_BP"));
if (PlayerPawnBPClass.Class != NULL)
{
DefaultPawnClass = PlayerPawnBPClass.Class;
}
}
So my question is
- How is the game starting at the character blueprint location in the third person c++ template ?
- How can I achieve the same in a blank c++ project without a player start ?