Replication to server replicates to wrong player's character

I am relatively new to replication, I am trying to pass a value from the client through input, to the server however, doing this passes it to the wrong player’s character. I don’t know why this happens.
image3

I wouldn’t rely on that as actor id

I understand this probably wasn’t the best way to test, the original bug was happening when I’d replicate one player’s input (equipping a hotbar slot) and it would equip that slot for another player, I’ve made a very similar system on another project and it worked fine so I am unsure why this is happening now. The inventory component where the hotbar lies is replicated.

After a lot of experimentation, it came down to a IsLocallyControlled issue, sorry for the misunderstanding.

1 Like