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"

Replicate character rotation on AddLocalRotation

After executing these events in my character blueprint, the character successfully rotates locally, however problems occur when trying multiplayer.

When the server (listen) player rotates, the other players see it, but when a client rotates, it doesn't replicate.

Is there a way to make the blueprint update to server? Or maybe should I rotate something else?

(Also, it's a third person game, AddControllerYawInput or something only turns the camera, I just want to rotate the mesh.)


Product Version: Not Selected
more ▼

asked Aug 19 '14 at 04:44 AM in Blueprint Scripting

avatar image

5 1 3 7

avatar image Duncan Dam Aug 19 '14 at 05:54 AM

Why do you want to rotate character locally ? Did you use the UseControllerRotationYaw to rotate Actor with camera ?

avatar image Lemonader Aug 19 '14 at 06:32 AM

UseControllerRotationYaw is disabled.

What I'm trying to do is rotate the camera and move around like in a third person game, but rotate my character/mesh with say Q and E. It all works, but the character turning doesn't replicate to other players like with UseControllerRotationYaw or Orient Rotation to Movement.

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

1 answer: sort voted first

ok, so you need to update rotation from client to server. Try this one

alt text

Make custom event that will run on server and tell server to update rotation of your actor so all client will be same.

turn.png (118.9 kB)
more ▼

answered Aug 19 '14 at 07:10 AM

avatar image

Duncan Dam
3.1k 121 50 164

avatar image Lemonader Aug 19 '14 at 07:58 AM

It works, thank you Duncan! :D

(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