What can replace "playerstart" in this code when used in tandem with "create local player" for 2 plus player gaming???

Starting a default third person template and duplicating the one player start so there is now two.
And choosing none for the default pawn in world settings.

And adding this code to the third person game mode.

I get two simultaneous players controllable by gamepad 1 and 2.

This system for two + players feels very touchy, while this does work in this case. What else can be used here instead of the playerstarts for alternative spawning?

Project file here.

Thanks.

bump

Bump 4 education.

bump bump…hand on the pump

B u Mp P p P ppp PP p PPPPPPPPPPPPPPPP ppp PP ppp

Take a look at the Game Modes override functions.

Specifically Choose Player Start and Find Player Start

In GameModeBase.cpp :
AGameModeBase::FindPlayerStart_Implementation
AGameModeBase::ChoosePlayerStart_Implementation

UE on Github :: https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Runtime/Engine/Private/GameModeBase.cpp


For those seeing a 404 error on GitHub for the link provided.

You need to have your Epic Games account linked to GitHub. Here’s the official walkthrough.
https://www.unrealengine.com/en-US/ue-on-github

Bonus link to the UE Source “File Finder”
https://github.com/EpicGames/UnrealEngine/find/release

1 Like

Ok, thanks Rev!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.