Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/GameInstance.h |
Include |
#include "Engine/GameInstance.h" |
Source |
/Engine/Source/Runtime/Engine/Private/GameInstance.cpp |
ULocalPlayer * CreateLocalPlayer
(
int32 ControllerId,
FString & OutError,
bool bSpawnPlayerController
)
Adds a new player.
The player which was created.
Parameter |
Description |
---|---|
ControllerId |
The controller ID the player should accept input from. |
OutError |
If no player is returned, OutError will contain a string describing the reason. |
bSpawnPlayerController |
True if a player controller should be spawned immediately for the new player. |