# Top down character rotation replication

**URL:** <https://forums.unrealengine.com/t/top-down-character-rotation-replication/313491>\
**Category:** Multiplayer & Networking\
**Tags:** Replication, replicate, Actor-Replication, unreal-engine, top-down, question, Blueprint\
**Created:** [April 2, 2015, 5:12am UTC](https://forums.unrealengine.com/t/top-down-character-rotation-replication/313491 "2015-04-02T05:12:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fruity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fruity](https://forums.unrealengine.com/u/Fruity)\
**Post date:** [April 2, 2015, 5:12am UTC](https://forums.unrealengine.com/t/top-down-character-rotation-replication/313491/1 "2015-04-02T05:12:49Z")

</div>

I’ve set all the characters tabs to replicate, and while i get the actor location and events, i’m unable to get the characters rotation itself. Currently i am using a mouse aim to rotate the character by hit channel. Could someone fill me in how to force replicate the charters rotation by blueprint?

I’m attempting to replicate a characters rotation, so even by using function replication it resets when moving. My overall goal is to have a character Look to where the mouse is aimed, while being able to move freely; and to replicate this mouse look to the other players. What i have found is that replicate movement does not apply to the Set actor rotation, but only to Add controller Yaw input. So… is there any manner to interpret the mouses position onscreen into an “add controller Yaw” “val” input. I’ve thought the possibility to check if the mouse is to the left or right of the characters current facing then input a value based off that, but am not quite sure how to check mouse location based off that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [April 2, 2015, 6:40am UTC](https://forums.unrealengine.com/t/top-down-character-rotation-replication/313491/2 "2015-04-02T06:40:03Z")

</div>

Hi

get the relative location and promote to Variable, then use the variable to set rotation to other items.

![36976-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/f/23f4b27ff6f29c4558783bc07eef0c0eca503561.jpeg)

---

<div class="post-metadata">

**Author:** ![Fruity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fruity](https://forums.unrealengine.com/u/Fruity)\
**Post date:** [April 2, 2015, 5:40pm UTC](https://forums.unrealengine.com/t/top-down-character-rotation-replication/313491/3 "2015-04-02T17:40:03Z")

</div>

No luck, it seems the “set rotation” functions are not set to replicate themselves, so while i can get a replicated varriable i can’t actually replicate the result to the other players (atleast by what im seeing).

> **[Gyazo](https://gyazo.com/8adaae666e71f992b86b7645c2813611)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

---

<div class="post-metadata">

**Author:** ![vanlacke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vanlacke](https://forums.unrealengine.com/u/vanlacke)\
**Post date:** [April 3, 2015, 3:28am UTC](https://forums.unrealengine.com/t/top-down-character-rotation-replication/313491/4 "2015-04-03T03:28:28Z")

</div>

I would grab the rotation of each client and have them send it to the server, and have the server replicate it to the other players.

I believe the reason that replicate movement doesn’t work is because it only replicated movement/controller input nodes.

---

<div class="post-metadata">

**Author:** ![Fruity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fruity](https://forums.unrealengine.com/u/Fruity)\
**Post date:** [April 3, 2015, 4:15am UTC](https://forums.unrealengine.com/t/top-down-character-rotation-replication/313491/5 "2015-04-03T04:15:51Z")

</div>

Here’s what i set up, i did get it working to send back via function, but with it doesn’t update well with event tick and mouse cursor. basicaly it spasms when player moves, or ignores it altogether to favor the movement input.  
So, whenever the character moves, the rotation breaks; that’s the issue that i have there.

> **[Gyazo](https://gyazo.com/399245866ec65f9167c97940e5dbc399)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

> **[Gyazo](https://gyazo.com/cf4634d00e5aceae3afb98c99334534e)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

---

<div class="post-metadata">

**Author:** ![Fruity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fruity](https://forums.unrealengine.com/u/Fruity)\
**Post date:** [April 3, 2015, 5:53pm UTC](https://forums.unrealengine.com/t/top-down-character-rotation-replication/313491/6 "2015-04-03T17:53:36Z")

</div>

Well, the solution was a bit easier than i thought after all that, the problem was that the actor rotation was being set on the controller, then attempting to set the actors rotation via getting their already set rotation from the character; so i guess the two conflicted causing it to seem to spasm out.

So what i did, was have an event tick send a call function relaying the info from a mouse hit channel function to the character, then on the character set up a on client and on server custom events to relay the information to the clients.

> **[Gyazo](https://gyazo.com/bb26920a08a15deba7e606620ef798bc)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

> **[Gyazo](https://gyazo.com/7a89575fde4eeed5cfeaf67a3647bc36)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.
