x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Issue with Multicast function

I'm having an issue with this multicast function not firing on the clients when fired from a client.

http://i.imgur.com/EE2V4ZL.png

When it's running as a listen server, and the server client triggers the onUse function it works and replicates to all of the other clients.

There is a BP with the function On Use, and a child BP that overwrites the function.

The playerclass BP uses a button to trigger a ray trace.

alt text

Which then triggers the OnUse function of the object it finds.

alt text

I figured it out right after I posted it, I figured I'd just update the question in case anyone else stumbles upon it while looking.

alt text

Instead of having it directly calling Toggle, I have it call a function that replicates to the server, then I have the server call the multicast function.

Product Version: UE 4.15
Tags:
more ▼

asked May 02 '17 at 05:48 AM in Blueprint Scripting

avatar image

Vladorf
1 1 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Your function Toggle is not executed on clients because it isn't called at all from a client -- your Has Authority switch forbids it. Because a listen server would call this method, I assume that the server has the authority over the Usable Object, but not the client. Normally you would create (for example) a ServerOnUse function in your player controller or character and call it after you linetrace. This should be set to Run On Server and then calls the OnUse function. And when your lights are replicated, their status is updated on all client automatically.

more ▼

answered May 02 '17 at 08:17 AM

avatar image

Benergy
831 21 4 29

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question