Get which pawn is inside the function

Hello!

I have a local 4 multiplayer game. So basically 4 players in the same computer without split screen.

They all have the same keybindings, so they all access the same functions, but I need to know which pawn is accesing every function.

I create them like that:

players.Push(GEngine->GameViewport->CreatePlayer(numPlayers, err, true));

been players an TArray<ULocalPlayer*> players;

So I thought any of those options would work, but I didn’t get any success.

for()
players*->GetUniqueID() == GetNetOwningPlayer()->GetUniqueID()

players[i ] == GetNetOwningPlayer()

can anybody guide me a bit on this?

thanks!

Please post this question to the Answer Hub. When you do, include a link to the question here.

Thanks