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"

[Bug] Character Rotation replicated to all except owning client

Hello !

I have a weird issue with my character rotation, if I use SetActorRotation on server side, the rotation is correctly updated to all except owning client.

Build version: 4.15.1 (Launcher)

Repro Steps:

  1. Create a Third Person Template

  2. Add this input event and replicated event : alt text

  3. Set Two players and check Run dedicated server

Thanks in advance !

Product Version: UE 4.15
more ▼

asked Mar 23 '17 at 09:53 PM in Bug Reports

avatar image

284 2 13 14

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

1 answer: sort voted first

Hey JackBlue,

I don't believe that this is a bug. I've gotten the actor rotation to replicate using the following setup:

First, I created a custom event, one that sets the rotation on the client using a RepNotify rotator variable, and another that is called on the server that simply calls the client's NewRot event.

alt text

Then, make sure you open up your OnRep function that is created when you set your rotator variable to RepNotify, and add the following:

alt text

Finally, on K, I call either the server or client version of my rotation event:

alt text

Using this, I printed the actor rotation and it was the same on both clients.

actorrot.png (186.7 kB)
onrep.png (40.2 kB)
more ▼

answered Mar 24 '17 at 02:55 PM

avatar image

Sean L ♦♦ STAFF
43.5k 485 152 442

avatar image Jackblue Mar 24 '17 at 06:11 PM

Thanks for your fast reply Sean !

I guess you made your test without check the Run dedicated server box, because your BP work fine for a LAN game but not with a dedicated server.

Also your input event seem strange, only the remote branch will be call from a client ( except the one hosting the game in the case of a LAN mode )

avatar image Sean L ♦♦ STAFF Mar 24 '17 at 06:28 PM

Ah, I just noticed that in my first screenshot I forgot to set ServerNewRot to Run On Server. Give that a shot.

(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