I have a widget component on an in game actor that should switch between green and red when the player clicks on that actor. I have the widget bound to a function watching a Boolean in the actor BP. The Game State has a map with all the actors of that class listed by their specific object name, and their corresponding variable.
When clicked, the actor calls the Game State BP and sends it’s object name and self reference. The Game State then updates the key corresponding to that specific actor’s object name, and then casts to the actor to switch the Boolean accordingly.
The Game State’s map replicates properly- but the widget does not.
- UPDATE -
I tried casting to the player controller and using a custom event that executes on server, leading to another which executes multicast, which from there casts back to the actor bp and changes the variable. This works, but only if the actor is clicked from the server.