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 |
static APlayerController &42; GetPlayerControllerFromID
&40;
const UObject &42; WorldContextObject,
int32 ControllerID
&41;
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 |