Get Controller Index Multiplayer

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.

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

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?

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.

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.

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

Worked!!!, thanks a lot!

Worked!!!, thanks a lot!

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…

Thumbsup…

There’s no need, UE4 does if for you :wink: