Multiple available spawn points in a multiplayer scenario

Hey everyone,

I’ve been wondering how you would go about creating a spawn point system where you have multiple spawn points/areas on your map from which the game will randomly choose one to spawn the player in, sort of like open world survival games like Rust or death match first person shooters…

Any help is very appreciated, thanks in advance!

You can look at a function like AGameModeBase::FindPlayerStart and figure it out yourself. It traverses the PlayerStarts placed in the map, and based on certain criterias, it finds one to spawn the player in.

2 Likes