I have a room with items a player can pickup and equip.
When two players (playerA and playerB ) connect and player A picks up an item the player B see the item correctly equiped.
But if Player A connects, pick up an item and then player B connects AFTER the item has been looted, the player B still sees the item in the ground and doesnt see the item equiped in player A.
It looks to me like new players are not being synchronized with the current state of the room and every new player which connects see the room "brand new"
I am not sure how I should approach this issue.
When a player equips an item should update everybody by punRPC? than wont work because new players doesnt exist yet.
How can I solve this issue?
When two players (playerA and playerB ) connect and player A picks up an item the player B see the item correctly equiped.
But if Player A connects, pick up an item and then player B connects AFTER the item has been looted, the player B still sees the item in the ground and doesnt see the item equiped in player A.
It looks to me like new players are not being synchronized with the current state of the room and every new player which connects see the room "brand new"
I am not sure how I should approach this issue.
When a player equips an item should update everybody by punRPC? than wont work because new players doesnt exist yet.
How can I solve this issue?