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"

Server camera rotation not replicating to client

I made a little toy using the Third Person Template as a base. The only feature is has is that you fire a little red laser in the direction the camera is pointing when you left click. I want the two players (server and 1 client) in the level to see the lasers that the other fires heading in the correct direction. It's almost working, too. When I fire lasers as the client the server sees them exactly as it should. When I fire lasers on the server, the server sees them head in the direction its camera is pointing (as it should), but the server sees the lasers head in the direction the server's mesh is pointing. I can swivel my camera view all around on the server, and the lasers follow correctly. On the client's view, however, the lasers do not change their direction unless I turn the server's mesh with WASD. This is the only code I've added to the Third Person Template: alt text

Does anyone know what's causing the problem?

Product Version: UE 4.8
Tags:
sadface.png (331.7 kB)
more ▼

asked Nov 03 '15 at 12:52 AM in Blueprint Scripting

avatar image

2Green
1 1 2 3

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

1 answer: sort voted first

alt text

Okay so I managed to figure this out today, the client simply didn't "know" what the rotation value of the server's camera boom was. So I just passed the value with a function input.

yee.png (380.6 kB)
more ▼

answered Nov 03 '15 at 11:36 PM

avatar image

2Green
1 1 2 3

(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