Announcement

Collapse
No announcement yet.

How to toggle moment speed on UI click in multiplayer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to toggle moment speed on UI click in multiplayer

    In my game a player can click a button on the UI to toggle run/walk. This works fine for the server, but this toggle does not work for clients. I am pretty sure this will be related to network replication but I cannot work it out. I will post relevant blueprints to help get a better idea.

    I have a character blueprint, which spawns and creates a UI:
    Click image for larger version

Name:	1.PNG
Views:	1
Size:	66.5 KB
ID:	1161240

    In this UI, there is an event for handling a mouse click on the walk/jog toggle button:
    Click image for larger version

Name:	2.PNG
Views:	1
Size:	53.0 KB
ID:	1161241

    How should I go about replicating this to the server and other clients?

    #2
    Clients are not allowed to change replicated properties, try executing that event on the server by using a custom event with that replication property, though I can't say for sure until I know what is in your Toggle Jog function.
    Marketplace Assets

    Advanced Mobile Input: Marketplace Page | Support Thread ――― Easy Input Remapping: Marketplace Page | Support Thread
    Multiplayer Blueprint Chat System: Marketplace Page | Support Thread ――― Closing Credits System: Marketplace Page | Support Thread
    Minesweeper Template: Marketplace Page | Support Thread ――― Maze Creator: Marketplace Page | Support Thread

    Comment

    Working...
    X