Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > AGameModeBase > SpawnPlayerController
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
Include | #include "GameFramework/GameModeBase.h" |
Source | /Engine/Source/Runtime/Engine/Private/GameModeBase.cpp |
virtual APlayerController &42; SpawnPlayerController
&40;
ENetRole InRemoteRole,
const FString & Options
&41;
Remarks
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
Parameters
Name | Description |
---|---|
RemoteRole | the role this controller will play remotely |
Options | the options string from the new player's URL |