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 int32 GetPlayerControllerID
&40;
APlayerController &42; Player
&41;
Remarks
Gets what physical controller ID a player is using. This only works for local player controllers. The ID of the passed in player. -1 if there is no physical controller assigned to the passed in player
Parameters
Name | Description |
---|---|
Player | The player controller of the player to get the ID of |