Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UGameplayStatics
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintCallable, Category="Game",
Meta=(DisplayName="Remove Local Player", UnsafeDuringActorConstruction="true"))
static void RemovePlayer
(
APlayerController * Player,
bool bDestroyPawn
)
Remarks
Removes a local player from this game.
Parameters
| Name | Description |
|---|---|
| Player | The player controller of the player to be removed |
| bDestroyPawn | Whether the controlled pawn should be deleted as well |