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"

Cannot tell the server to call a function using "replicates on server"

I have two players 1 is the server and the other is the client. If I interact with the door using the server, it's all fine. But if I interact with door using the client, then it prints the "on client" that I've specified but the door won't open.

What I tried to do is when a client tries to open the door, it sends a request to the server to call the interact function from there so every client opens it and not just that one.

This is in the First Person Character Blueprint

This is the door's blueprint

Product Version: UE 4.16
more ▼

asked Aug 15 '17 at 02:50 PM in Blueprint Scripting

avatar image

1 1 1

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

1 answer: sort voted first

Opening a door seems to be some core gameplay mechanics, so at first glance I'd enable the "reliable" checkbox on all the remote calls.

more ▼

answered Aug 16 '17 at 03:33 PM

avatar image

216 9 16 22

avatar image botiapa Aug 17 '17 at 04:09 PM

I enabled the reliable checkbox, but it didn't help.

avatar image botiapa Aug 25 '17 at 08:45 PM

Still didn't find an answer.

avatar image lotodore Sep 01 '17 at 09:45 AM

I don't know the exact problem with your blueprints, but I would not implement it in that way. If you need to replicate actor movement (which is implied by changing the facing direction) I would simply enable replication for actor movement and then do the changes only on the server (they will replicate then). alt text

Also in general, there should be no need to call "Force net update". If you are not happy with replication speed, you can increase the replication priority (called "Net Priority") of the actor.

(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