Returns a PlayerController reference. Two versions exist:

  • Standalone node (Gameplay Statics) — looks up a controller by Player Index. This is the common version.
  • PlayerState node — called on a PlayerState target, returns the controller that owns it. No index needed.

Use When

  • You need a PlayerController reference to pass as Owning Player (e.g., for Create Widget)
  • You need to access input, HUD, or camera functionality through the player’s controller
  • Single-player games almost always use Player Index 0

How It Works

Standalone Version (Gameplay Statics)

PinTypeDescription
Player Index (input)IntegerIndex in the player controller list. 0 = first local player. In networked games, local players are listed first, then available remote ones
Return Value (output)Player Controller Object ReferenceThe controller at that index

The index stays consistent as long as no players join or leave, but is not the same across different clients and servers.

PlayerState Version

PinTypeDescription
Target (input)Player State Object ReferenceThe PlayerState to query
Return Value (output)Player Controller Object ReferenceThe controller that created this PlayerState, or null for remote clients

Common Patterns

Provide Owning Player to Create Widget (Tutorial 103 pattern): At BeginPlay, call Get Player Controller (Player Index 0). Connect its Return Value to the Owning Player pin of Create Widget.

Source