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"

[Networking] How to ask the server to do some action by interacting with an object ?


I've recently watched the network-related videos and am doing some tests with blueprints and networking in general. In this particular case I'm trying to set up for example a chair that rotates when a player uses the E key onto it. Unfortunately the Custom Event that the server is supposed to run (set to "Run on server") doesn't run at all. But the input action has correctly been triggered by the client after enabling input on the blueprinted chair on his side.

To make it clear here's what works fine (as expected): alt text This is from the default Character blueprint. Server correctly prints "Test A" on the screen.

And here's what doesn't work: alt text This is from a blueprinted actor in the scene. I verified that the player had input by printing something before calling the "Test Action" custom event and it worked fine. However the Custom Event never gets executed.

I'm sure this has a perfect explanation and I'm not doing it all right. Could anyone please explain what's wrong or missing here ? I suppose it must have something to do with the fact it's not the pawn that calls the event.

Thanks a lot in advance !

Product Version: Not Selected
more ▼

asked Aug 05 '14 at 12:08 PM in Blueprint Scripting

avatar image

151 7 12 23

avatar image Duncan Dam Aug 06 '14 at 01:35 AM

It seem you have the correct setting for this, i do the same in my case, when i walk near the car and press E server will handle controller to posses the car. For my case i send the event overlap to the player controller and handle the input and server event from there.

avatar image GregBlast Aug 06 '14 at 11:04 AM

Can I ask you to describe what you do concretely in your last sentence ? I'm not sure to see what you mean...

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

0 answers: sort voted first
Be the first one to answer this question
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