# \[Bug\] Character Rotation replicated to all except owning client

**URL:** <https://forums.unrealengine.com/t/bug-character-rotation-replicated-to-all-except-owning-client/388824>\
**Category:** Character & Animation\
**Tags:** UE4-15, actor-rotation, unreal-engine, bug-report, question\
**Created:** [March 23, 2017, 9:53pm UTC](https://forums.unrealengine.com/t/bug-character-rotation-replicated-to-all-except-owning-client/388824 "2017-03-23T21:53:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jackblue](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jackblue/32/88706_2.png) [@Jackblue](https://forums.unrealengine.com/u/Jackblue)\
**Post date:** [March 23, 2017, 9:53pm UTC](https://forums.unrealengine.com/t/bug-character-rotation-replicated-to-all-except-owning-client/388824/1 "2017-03-23T21:53:31Z")

</div>

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 :

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/4/0a4a30a51a0cab807bf1f07d6fcbe4bf7589984b.png)

1. Set Two players and check `Run dedicated server`

Thanks in advance !

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [March 24, 2017, 2:55pm UTC](https://forums.unrealengine.com/t/bug-character-rotation-replicated-to-all-except-owning-client/388824/2 "2017-03-24T14:55:13Z")

</div>

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.

 ![131522-actorrot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/d/bdd4caa2109e14953b5abd3e594575461b08f17a.png)

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

![131523-onrep.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/c/c7c1552df8a21ac6b48bf486b807e61af8348e44.png)

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

![131524-3-24-2017+10-46-46+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/a/e9a95e13d77dd1c8372676268cab5af4fd445779.png)

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

---

<div class="post-metadata">

**Author:** ![Jackblue](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jackblue/32/88706_2.png) [@Jackblue](https://forums.unrealengine.com/u/Jackblue)\
**Post date:** [March 24, 2017, 6:11pm UTC](https://forums.unrealengine.com/t/bug-character-rotation-replicated-to-all-except-owning-client/388824/3 "2017-03-24T18:11:18Z")

</div>

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 )

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [March 24, 2017, 6:28pm UTC](https://forums.unrealengine.com/t/bug-character-rotation-replicated-to-all-except-owning-client/388824/4 "2017-03-24T18:28:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Timofey2024](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Timofey2024](https://forums.unrealengine.com/u/Timofey2024)\
**Post date:** [May 17, 2023, 4:34pm UTC](https://forums.unrealengine.com/t/bug-character-rotation-replicated-to-all-except-owning-client/388824/5 "2023-05-17T16:34:36Z")

</div>

Hello. Have you solved this problem? I have the same problem.
