Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameplayStatics
Description
Sets what physical controller ID a player should be using. This only works for local player controllers.
| Name | SetPlayerControllerID |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include Path | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintCallable, Category="Game",
Meta=(DisplayName="Set Local Player Controller ID", UnsafeDuringActorConstruction="true"))
static void SetPlayerControllerID
(
APlayerController * Player,
int32 ControllerId
)
Parameters
| Name | Remarks |
|---|---|
| Player | The player controller of the player to change the controller ID of |
| ControllerId | The controller ID to assign to this player |