Setting Actor's Instigator

Hey guys! I have an easy question for you.

So what I am trying to do is to assign the right Instigator to items already placed in the scene. To explain it a little bit, I have 2 players playing over network and each should get some item from the scene. Each item has a name tag that says either “player 1” or “player 2”. I want when client logs in, to set the right item instigator.

I change items’ instigator in GameMode event after EventPostLogin. Event is called by client and executed on server. Event gets PlayerController as an input argument. Take a look at the snapshot

. What doesn’t work is branch node that is always true, no matter if it’s client 1 or client 2 calling event AssignInventory. If you see what I did there, I tried to decide if I am the client 1 or client 2 by looking at PlayerArray. As far as I know PlayerArray is populated in the order of clients, so PlayerArray[0] is Client 1 data, PlayerArray[1] is Client 2 data, etc. Now, for some reason it is always client 1 as an output.

Does anyone know what could be the problem?