Hello everyone,
I am making a multiplayer game in which players can score by pressing buttons. I set up a widget interaction component on the player controller so that the buttons can be in widgets. The problem I am having is that while hovering works on both client and server, only the server can increase their score. I can increase the score on the client machine but it isn’t sent up to server. What I have tried:
- Have the input event call a server rpc
- Have the widget call a server rpc
- Give each player a unique virtual index
- have input event not ‘consume input’
- Enable hardware input on widget
- put Widget Interaction Comp. on pawn
- No collision volume in the way
- Setting a ray cast every tick to Widget interaction custom Custom Hit Result
- Widget uses On Pressed instead of On Clicked (On Clicked doesn’t work either)
Weirdly, It worked a couple of times when it was on the pawn, but never again. I cannot reproduce and so I am wondering if it is some kind of race condition. Any insight on what might cause this would be much appreciated.
Thank you!