# Get Controller Index Multiplayer

**URL:** <https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954>\
**Category:** Character & Animation\
**Tags:** playercontroller, controller, index, unreal-engine, question\
**Created:** [December 6, 2018, 1:37am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954 "2018-12-06T01:37:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheSubZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Post date:** [December 6, 2018, 1:37am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/1 "2018-12-06T01:37:39Z")

</div>

I’m trying to call an event when the player overlaps the collision to switch the camera to the blueprint of a specific player on the multiplayer server but the event is calling only for the client1 which is player index = 0, Get player controller index = 0 independent of which client being 2,3,4 … overlaps the collision only the client 1 responds

Any solution?

 ![261438-index.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/2/a32c514e6ae475647ef9301daee444d5e7ef3654.jpeg)

---

<div class="post-metadata">

**Author:** ![LucentStar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LucentStar](https://forums.unrealengine.com/u/LucentStar)\
**Post date:** [December 6, 2018, 1:54am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/2 "2018-12-06T01:54:18Z")

</div>

Can I know what is your setup? If you are single local player then its always set to 0. If you have more Players playing local together they have Player Controllers with different indexes, like 0-3.Can you try to use “Get Controller” instead of “Get Player Controller”. it might work for you if you have an indicated controller for an specific actors.

---

<div class="post-metadata">

**Author:** ![Evigmae](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/evigmae/32/1187349_2.png) [@Evigmae](https://forums.unrealengine.com/u/Evigmae)\
**Post date:** [December 6, 2018, 2:48am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/3 "2018-12-06T02:48:04Z")

</div>

You need to get the Controller of the player overlapping the collision, and use that.

Since you’re calling it on the server, player index 0 will always be the 1st player that got in.

 ![261430-captura.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/0/1506f5da8f47bf334ddb8064b62290940cbc771e.png)

You need a dynamic pointer to whatever PlayerController possesses whoever overlapped the box.

---

<div class="post-metadata">

**Author:** ![TheSubZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Post date:** [December 6, 2018, 2:59am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/4 "2018-12-06T02:59:34Z")

</div>

Yes there are more than 1 player on the same network but I do not know how to get a specific player’s controller when calling the event.

---

<div class="post-metadata">

**Author:** ![TheSubZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Post date:** [December 6, 2018, 3:01am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/5 "2018-12-06T03:01:12Z")

</div>

And how do I create a dynamic point in the blueprint Player controller?

---

<div class="post-metadata">

**Author:** ![TheSubZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Post date:** [December 6, 2018, 3:07am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/6 "2018-12-06T03:07:38Z")

</div>

Worked!!!, thanks a lot!

---

<div class="post-metadata">

**Author:** ![TheSubZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Post date:** [December 6, 2018, 3:07am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/7 "2018-12-06T03:07:47Z")

</div>

Worked!!!, thanks a lot!

---

<div class="post-metadata">

**Author:** ![Evigmae](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/evigmae/32/1187349_2.png) [@Evigmae](https://forums.unrealengine.com/u/Evigmae)\
**Post date:** [December 6, 2018, 3:15am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/8 "2018-12-06T03:15:34Z")

</div>

There’s no need, UE4 does if for you 😉

---

<div class="post-metadata">

**Author:** ![LucentStar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LucentStar](https://forums.unrealengine.com/u/LucentStar)\
**Post date:** [December 6, 2018, 4:27am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/9 "2018-12-06T04:27:17Z")

</div>

haha… i posted it as comment… well goodluck in your project… im might not that helpful but its great that someone resolves it for you…

---

<div class="post-metadata">

**Author:** ![LucentStar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LucentStar](https://forums.unrealengine.com/u/LucentStar)\
**Post date:** [December 6, 2018, 4:28am UTC](https://forums.unrealengine.com/t/get-controller-index-multiplayer/438954/10 "2018-12-06T04:28:02Z")

</div>

Thumbsup…
