Setting dynamic player start

The appropriate place that this is set is in AGameMode::ChoosePlayerStart_Implementation(AController* Player) (https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AGameMode/ChoosePlayerStart/index.html). This is what you would need to override. It is marked as a BlueprintNativeEvent, so you should be able to implement it in your custom GameMode blueprint.

You would then create a new APlayerStart that is derived from the APlayerStart blueprint. In it you would have a variable that determines which team can spawn there. In your GameMode method described above, you would return the PlayerStart actor that corresponds with the appropriate team. You would get the list of PlayerStarts in the level by using the TActorIterator method (which is the GetAllActorsOfClass node).

Hey everyone!

I am working on a small project and wanted to set up my Player Start points to allow for two different teams and bots. I wanted specific Player Starts to spawn bots and then specific spawns for each team.

Does anyone know of a way to do this without using C++?

Thanks!

In order to do this you need to store every player start in an array and override a function.

Please refer to this excellent answer by another user. Remember to vote his answer up.

In your case you have to create some logic so that you know what playerstart to select in what condition. Enums or ints can be used for this. Even strings.