Announcement

Collapse
No announcement yet.

Run Event on the server from the client

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

    Run Event on the server from the client

    Hi,
    I'm really having a bad time trying to understand UE4's Multiplayer system.
    I want the client to be able to execute an event on the server. How can I do that?

    This is what I've tried:

    Click image for larger version

Name:	Capture1.PNG
Views:	1
Size:	80.8 KB
ID:	1611218

    The message "Executed on server!" only appears when the "ClientSideEvent" is executed by the host, but not when it's executed by a client

    #2
    The "ClientSideEvent" should be a normal custom event. Then you can use "Switch Has Authority" node to check if you are the client or the server. For the client branch you call the server event that executes on the server.

    Click image for larger version

Name:	event.png
Views:	1
Size:	74.9 KB
ID:	1611635

    Comment

    Working...
    X