Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
Include |
#include "GameFramework/GameModeBase.h" |
Source |
/Engine/Source/Runtime/Engine/Private/GameModeBase.cpp |
virtual APlayerController * SpawnPlayerController
(
ENetRole InRemoteRole,
const FString & Options
)
Spawns the appropriate PlayerController for the given options; split out from Login() for easier overriding. Override this to conditionally spawn specialized PlayerControllers, for instance.
PlayerController for the player, NULL if there is any reason this player shouldn't exist or due to some error
Parameter |
Description |
---|---|
RemoteRole |
the role this controller will play remotely |
Options |
the options string from the new player's URL |