# Trouble Replicating Control Rotation to Bone

**URL:** <https://forums.unrealengine.com/t/trouble-replicating-control-rotation-to-bone/1267543>\
**Category:** Multiplayer & Networking\
**Tags:** Replication, bone-transform, unreal-engine, FeatureRequest, question, Blueprint, CPP\
**Created:** [August 21, 2023, 9:34am UTC](https://forums.unrealengine.com/t/trouble-replicating-control-rotation-to-bone/1267543 "2023-08-21T09:34:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KT\_Grizzly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KT\_Grizzly](https://forums.unrealengine.com/u/KT_Grizzly)\
**Post date:** [August 21, 2023, 9:34am UTC](https://forums.unrealengine.com/t/trouble-replicating-control-rotation-to-bone/1267543/1 "2023-08-21T09:34:46Z")

</div>

Hello,

Currently I am facing an issue with my Client to Client Replication of my characters Control Rotation.  
The current setup I am using is that the mouse rotates the characters spine when aiming in a FPS game. This works just fine using GetControlRotation() but replication only works from Client to Server and Server to Client. If there are 2 clients and 1 server, then the other clients cannot see the rotation.

To fix this, I used a NetMulticast to replicate another variable every time the mouse sends input, but this technique leads to a lot of bone jittering when played online.  
Does anyone know how to easily replicate this bone rotation in a smooth way?

Below is my C++ and BP’s

Animation Instance BP

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/1/3112c063636bb7f695f41f28a8c1f68df43c8b90.png)

Animation Instance Anim Graph

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

AnimInstance C++

```auto
void UShooterAnimInstance::NativeUpdateAnimation(float DeltaTime)
{

	RemoteAimRotationPitch = -ShooterCharacter->AimRotation.Pitch;
	LocalAimRotationPitch = -ShooterCharacter->GetControlRotation().Pitch;

}

```

Character C++

```auto
void AShooterCharacter::CameraLook(const FInputActionInstance& Instance) {
	AddControllerPitchInput(-Instance.GetValue().Get<FVector2D>().Y * CameraRotationRate);
	AddControllerYawInput(Instance.GetValue().Get<FVector2D>().X * CameraRotationRate);
	ServerSetAimRotation();
}

```

```auto
void AShooterCharacter::ServerSetAimRotation_Implementation()
{
	MulticastSetAimRotation();
}

void AShooterCharacter::MulticastSetAimRotation_Implementation()
{
	AimRotation = GetControlRotation();
}

```

```auto
	UFUNCTION(Server, Reliable, BlueprintCallable)
	void ServerSetAimRotation();

	UFUNCTION(NetMulticast, Reliable)
	void MulticastSetAimRotation();

	UPROPERTY(Replicated)
	FRotator AimRotation;

```

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [August 23, 2023, 12:58am UTC](https://forums.unrealengine.com/t/trouble-replicating-control-rotation-to-bone/1267543/2 "2023-08-23T00:58:12Z")

</div>

Just use `Get Base Aim Rotation`.
