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"

Client can't open doors, Server can

If the server tries to open the door, matinee animation is played on both client and the server.

If the client tries to open the door, nothing happens on client nor server.

Any help? I have tried many combinations on which command to replicate in which way.

alt text

Product Version: UE 4.21
Tags:
bez-nazvu.png (83.4 kB)
more ▼

asked Nov 18 '18 at 12:30 AM in Blueprint Scripting

avatar image

Dank22x
15 1 2 6

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

2 answers: sort voted first

You may want to not only run that on the server, but also multicast it to everyone.

more ▼

answered Nov 18 '18 at 01:16 AM

avatar image

Debaucher
67 1 7 9

avatar image Dank22x Nov 18 '18 at 01:28 AM

It doesn't open even on the server so i guess multicasting it back right now would make no difference, first i need to figure out why is it not opening on the server when client tries to open it

avatar image Debaucher Nov 18 '18 at 01:34 AM

Make sure that the object in question is being replicated.

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

Server RPCs like the one you have here will silently fail unless they are fired from a class that owns a network connection. I dont know much about those but whenever it doesnt fire, if I move the event to a Playercontroller blueprint and have it fire it instead then it magically works.

Same thing for multicasts that silently fail. If I put them in my custom gamestate instead, then they magically work where they didnt in other classes.

You dont necessarily have to make all client to Server RPCs from Playercontroller and you dont necessarily have to make all multicasts from Game state but it sure fixed my problems. To do the RIGHT thing we shoyod find out more about the concept of owning connections in the gameplay framework.

more ▼

answered Nov 18 '18 at 02:42 AM

avatar image

mightyenigma
3.8k 18 24 21

avatar image mightyenigma Nov 18 '18 at 02:43 AM

I may be wrong but I am guessing you are trying to fire this server RPC from the level blueprint. Maybe that is why it is not firing.

avatar image Dank22x Nov 18 '18 at 03:26 AM

I was trying to fire it from level blueprint. Now I remade it into character bp and gamemode bp, same thing.. :/

avatar image mightyenigma Nov 18 '18 at 03:29 AM

Well I shoupd clarify. It doednt matter which blueprint you fire it from, but it does matter which class has the Server RPC event in it. So you could fire it from the level blueprint as long as the target is a playercontroller. not sure if the Character works. Does that help?

avatar image Dank22x Nov 18 '18 at 09:30 PM

If I trigger the animation by triggerbox overlapping with player, it works even on client. But if I set the animation to a interaction key, it doesnt work on the client.. Im so confused

(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