Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AGameModeBase
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual APlayerController * SpawnPlayerController
(
ENetRole InRemoteRole, |
Spawns the appropriate PlayerController for the given options; split out from Login() for easier overriding. | GameFramework/GameModeBase.h | |
virtual APlayerController * SpawnPlayerController
(
ENetRole InRemoteRole, |
GameFramework/GameModeBase.h |
SpawnPlayerController(ENetRole, const FString &)
Description
Spawns the appropriate PlayerController for the given options; split out from Login() for easier overriding. Override this to conditionally spawn specialized PlayerControllers, for instance.
| Name | SpawnPlayerController |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
| Include Path | #include "GameFramework/GameModeBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameModeBase.cpp |
virtual APlayerController * SpawnPlayerController
(
ENetRole InRemoteRole,
const FString & Options
)
PlayerController for the player, NULL if there is any reason this player shouldn't exist or due to some error
Parameters
| Name | Remarks |
|---|---|
| RemoteRole | the role this controller will play remotely |
| Options | the options string from the new player's URL |
SpawnPlayerController(ENetRole, FVector const &, FRotator const &)
| Name | SpawnPlayerController |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
| Include Path | #include "GameFramework/GameModeBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameModeBase.cpp |
virtual APlayerController * SpawnPlayerController
(
ENetRole InRemoteRole,
FVector const & SpawnLocation,
FRotator const & SpawnRotation
)