Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > UWorld > SpawnPlayActor
Deprecated * Use SpawnPlayActor with FUniqueNetIdRepl
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/World.h |
Include | #include "Engine/World.h" |
Source | /Engine/Source/Runtime/Engine/Private/LevelActor.cpp |
APlayerController &42; SpawnPlayActor
&40;
class UPlayer &42; Player,
ENetRole RemoteRole,
const FURL & InURL,
const FUniqueNetIdRepl & UniqueId,
FString & Error,
uint8 InNetPlayerIndex
&41;
Remarks
Spawns a PlayerController and binds it to the passed in Player with the specified RemoteRole and options the PlayerController that was spawned (may fail and return NULL)
Parameters
Name | Description |
---|---|
Player | the Player to set on the PlayerController |
RemoteRole | the RemoteRole to set on the PlayerController |
URL | URL containing player options (name, etc) |
UniqueId | unique net ID of the player (may be zeroed if no online subsystem or not logged in, e.g. a local game or LAN match) |
Error | (out) - if set, indicates that there was an error - usually is set to a property from which the calling code can look up the actual message |
InNetPlayerIndex | (optional) - the NetPlayerIndex to set on the PlayerController |