Download

Online Multiplayer - Get Other Player Location

Hi guys,
I’ve started a new project using Epic’s Multiplayer Shootout. Using Blueprints, I am trying to create an input action that finds the location of the other players on the server.

My current logic:
I tried using the ‘Game States’ player array and Player IDs to do this, but was unsuccessful. I also thought about getting all actors of class, but that gets all of the players, and I need an array of all the players in the game except for the player that’s performing the input action.

I know locally, I can just get the player controller index and grab the actors transform from there. But from what I understand in Online Multiplayer, every player controller index is 0.

Any ideas on how to do this in a better way? It works sometimes, but it seems to be inconsistent.

Cheers!