This My Inventory Logic Just Hides All Of The Guns Beside The One i am Holding this works fine on the listen server (the host of the game) i can see the clients getting update it But in clients nothing happens any ideas how to replicate it ??
Create a bool for IsVisible, make it OnRepNotify and in the OnRep function set SetHiddenInGame
or try Rendering|Visible on the mesh, one was replicated by default but i forget which
where should i create the bool because this is just a reference to the the weapon base . should i create it in the weapon ? This is where I get confused
yep it will need to be on the weapon and the weapon needs to be replicated, then create a function to set it and call that
this is the first method to mentioned with a rep notify
and the second method with a function non worked
did you add the logic to the OnRep function and ensure it works (maybe a printstring)
mb I forgot to replicate the gun data , so the client ended up receiving the same GunData for both weapons, making them appear as the same gun in its inventory.
Now it even works using the same SetHiddenInGame function. no replication or RepNotifies needed
Thanks for your help and your time.


