Select the PlayerStart where to spawn the player

Hi!

I’m using Unreal Engine 5.3.2.

On a Single Player level I have two PlayerStarts, each with different tags, and I want to set the PlayerStart where I want to spawn the Player.

To do it, I’ve been checking the AGameModeBase class where I have found the methods FindPlayerStart. ChoosePlayerStart,InitNewPlayer and Login. But I don’t know how to use, where to use it and when.

How can I select where to spawn the player?

Thanks!

It would look like something along the lines of:

Afair, if the pawn is not destroyed, it will be simply repositioned rather than respawned.


How can I select where to spawn the player? […] when

That part would be up to you, I believe. What is the reason / what causes the need to restart the player?

I’m developing a VR game, and I have to GameModes, one from the Desktop version and another one for the VR version. The level will be the same.

So, I think to add two PlayerStarts and with the GameMode for VR, select the PlayerStart for VR. This is why I need to select it.

But it could be useful if if I ever make a game with two players.

And I need to do it before I spawn the player on the level.

Thanks!

Masalah Pilih PlayerStart dalam game bisa mengganggu keseimbangan gameplay, menyebabkan ketidakadilan atau pengalaman bermain yang kurang optimal bagi pemain.