Navigation
Unreal Engine C++ API Reference > 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 (BlueprintPure, Category="Game",
Meta=(DisplayName="Get Local Player Controller From ID", WorldContext="WorldContextObject", UnsafeDuringActorConstruction="true"))
static APlayerController * GetPlayerControllerFromID
(
const UObject * WorldContextObject,
int32 ControllerID
)
Remarks
Returns the player controller with the specified physical controller ID. This only works for local players.
Parameters
Name | Description |
---|---|
ControllerID | Physical controller ID, the same value returned from Get Player Controller ID |