Announcement

Collapse
No announcement yet.

How to call a custom event on server from client?

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

    How to call a custom event on server from client?

    The following screen capture works fine when the server is interacting with the 'Box' but not when the client does. It seems ClientHandleClick is never called, not on client or server.

    "HandleClick" is set to Multicast, reliable ticked.

    "ClientHandleClick" is set to Run On Server, reliable unticked.

    The actor in my screen capture is owned by the server.
    Attached Files
    Last edited by Distul; 10-18-2016, 08:30 PM.

    Unpopular Minion on the Play Store (Released: January 31, 2016)

    #2
    Are you trying to have the server run an event for everyone as the server? Run on server server runs multicast event
    Inphidel / Brian - Developer of Ultraball
    http://www.ultraballgame.com

    Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

    Comment


      #3
      I found that the problem was that you cannot call a Run On Server event from an object not owned by caller.

      EG: The blueprint with the Run On Server is owned by server, but was being called by client -- so it was not working.

      The issue is resolved but I'm not 100% sure why it works. If I figure that much out I'll update my thread; otherwise rather keep it empty to prevent bad information.

      Unpopular Minion on the Play Store (Released: January 31, 2016)

      Comment

      Working...
      X