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"

How do I enable a client to request a server to perform a function?

I'm trying to get an 'interaction' system to work via Multiplayer on a Listen Server, and I can't seem to figure out how to get the client to request things that need server permission to happen. Can anyone give me a hand here? This is what I've worked up if it makes any sense.

alt text

Product Version: Not Selected
more ▼

asked Oct 25 '14 at 01:52 PM in Blueprint Scripting

avatar image

136 5 9 14

avatar image alperenakyuz Oct 28 '14 at 08:21 PM

Have you checked out the Networking tutorials on UE channel on YouTube? You can send functions back and forth between the server and clients.

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

1 answer: sort voted first

I'm not that pro with networking but I would suggest to make the blueprint which you posted replicated (it’s in class or default settings) and then forget about the "has authority" node in the "InteractedWith" event. Just check if the variable is valid and pass it to the "Interaction Function" which is "run on server". I guess if things are replicated properly, then it should work. I've done this with spawning projectiles on the server for the client. You just have to make sure that the blueprint in which the "run on server" function is, is replicated. But I guess there are other ways to do it.

more ▼

answered Nov 29 '16 at 06:48 AM

avatar image

183 6 12 12

(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