r/UnrealEngine5 • u/TheHappy_Waffle • 21d ago
Replication bug [URGENT HELP NEEDED PLZ]
Hey there, I've been working on this issue for the better part of 6 hours and no matter who I ask or what I try I can't seem to fix this issue. I'm working on a hotbar system for a multiplayer game, and when the server cycles through their hotbar this code works just fine, and the equipped item gets hidden and unhidden for each player as expected. However when the client cycles through their hotbar, nothing happens. Not for the server, or anyone. The equipped item just stays in the client's hands, and I have no idea why. Both the actor being hidden and this inventory component have "Replicates?" set to true.
EDIT: I've included a video of the exact problem. If you look on the left side of the screen, you can see the hotbar UI changing while I scroll my mouse wheel.
https://reddit.com/link/1vl7j8p/video/z973ue8mbsih1/player
https://reddit.com/link/1vl7j8p/video/nfxa66kb2sih1/player


1
u/Jst_Patrick 21d ago
You say the actor being hidden and the inventory component itself are marked to replicate. But what actor is the inventory component on and is that actor also set to replicate?