# Issue with GetPlayerController(1) in Multiplayer Setup

**URL:** <https://forums.unrealengine.com/t/issue-with-getplayercontroller-1-in-multiplayer-setup/2170555>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [December 4, 2024, 4:01pm UTC](https://forums.unrealengine.com/t/issue-with-getplayercontroller-1-in-multiplayer-setup/2170555 "2024-12-04T16:01:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![faithfultennyson](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/faithfultennyson/32/712687_2.png) [@faithfultennyson](https://forums.unrealengine.com/u/faithfultennyson)\
**Post date:** [December 4, 2024, 4:01pm UTC](https://forums.unrealengine.com/t/issue-with-getplayercontroller-1-in-multiplayer-setup/2170555/1 "2024-12-04T16:01:20Z")

</div>

I’m encountering an issue with my multiplayer game setup in Unreal Engine. Specifically, I’m having trouble using `GetPlayerController(1)` to access the second player controller. The function `GetPlayerController(0)` works perfectly for the first player, but when I try to use `GetPlayerController(1)`, it returns `None`, causing a runtime error.

**Error Message:**

```auto
PIE: Error: Blueprint Runtime Error: "Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue_1". Node: Set View Target with Blend Graph: EventGraph Function: Execute Ubergraph BP Third Person Game Mode Blueprint: BP_ThirdPersonGameMode

```

**Steps Taken:**

1. Used `Create Local Player` node to add a second player.
2. Attempted to use `GetPlayerController(1)` to access the second player controller.
3. Tried using C++ for the game mode, but the same issue persists.
4. Ran the game as a listen server, but player 2 is still missing.

Despite these steps, the second player controller is not being recognized. This issue is affecting my entire multiplayer code, as many functions rely on accessing the second player controller.

Any insights or solutions to resolve this issue would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [December 6, 2024, 12:58am UTC](https://forums.unrealengine.com/t/issue-with-getplayercontroller-1-in-multiplayer-setup/2170555/2 "2024-12-06T00:58:39Z")

</div>

Do not use `Get Player Controller (index)` in multiplayer.

From Pawn use `Get Controller`, then Cast to the controller class.

Clients only have a reference to Their Controller. Client controllers are NOT replicated to other players.

If you need to reference another players controller it has to be done on the server by the other players Pawn.

Server → Get a reference to the other players Pawn.  
`Pawn -> Get Controller -> cast`

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 12, 2025, 6:04pm UTC](https://forums.unrealengine.com/t/issue-with-getplayercontroller-1-in-multiplayer-setup/2170555/3 "2025-03-12T18:04:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
