# Basic spectating system not working as intended on Client?

**URL:** <https://forums.unrealengine.com/t/basic-spectating-system-not-working-as-intended-on-client/539611>\
**Category:** Multiplayer & Networking\
**Tags:** spectator, unreal-engine, Multiplayer, UE4-27, Blueprint, question\
**Created:** [April 25, 2022, 9:45pm UTC](https://forums.unrealengine.com/t/basic-spectating-system-not-working-as-intended-on-client/539611 "2022-04-25T21:45:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [April 25, 2022, 9:45pm UTC](https://forums.unrealengine.com/t/basic-spectating-system-not-working-as-intended-on-client/539611/1 "2022-04-25T21:45:39Z")

</div>

Hi. I’m trying to make a basic spectator system where a player dies, he/she can spectate other alive players. The logic behind it is very simple however I’m facing a weird rotation issue when the client tries to spectate.

Basically, all I’m doing is adding each player to a Players array in my GameState on BeginPlay. When someone dies, they can spectate through the alive players using this simple code:

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

The problem is, if the server is the one spectating, the rotation of the camera works as intended, however if a client is trying to spectate, then the camera won’t rotate.

Server spectating client (how I want them both to behave):

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/e/54e17b7262cc8b28b208d5622dd664fed3e2f811.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/e/54e17b7262cc8b28b208d5622dd664fed3e2f811.mp4)

Client spectating server (rotation not reflected):

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/3/9b35f0526f9094e91f5db90a5df6ef20187c5657.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/3/9b35f0526f9094e91f5db90a5df6ef20187c5657.mp4)

Any ideas how I can make this work? I know that Set View Target with Blend is a hacky way of doing things like this but I’m trying to learn/keep it simple with this project. Any tips/help appreciated!

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [April 26, 2022, 12:09am UTC](https://forums.unrealengine.com/t/basic-spectating-system-not-working-as-intended-on-client/539611/2 "2022-04-26T00:09:21Z")

</div>

I’m away from UE atm, but in the client character, have you turned off “UseControllerRotationYaw”?

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [April 26, 2022, 12:39am UTC](https://forums.unrealengine.com/t/basic-spectating-system-not-working-as-intended-on-client/539611/3 "2022-04-26T00:39:09Z")

</div>

Yeah it is turned off. Here are the movement/camera settings I’m using. And the server+client have the same character.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/9/0d972b9f1783a06a42da72a9ac2cd4b247016018.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/9/7f9d431ba4ccc28e475e60f67222a57c59719617.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/d/09d2e320ebe8768b3a63314820b394e5bab8d086.png)

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [April 26, 2022, 3:11pm UTC](https://forums.unrealengine.com/t/basic-spectating-system-not-working-as-intended-on-client/539611/4 "2022-04-26T15:11:34Z")

</div>

Any ideas? I really want to get this to work properly!

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [April 26, 2022, 7:31pm UTC](https://forums.unrealengine.com/t/basic-spectating-system-not-working-as-intended-on-client/539611/5 "2022-04-26T19:31:54Z")

</div>

Did you try turning off “Use Pawn Control Rotation”?

---

<div class="post-metadata">

**Author:** ![isikdev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isikdev/32/991020_2.png) [@isikdev](https://forums.unrealengine.com/u/isikdev)\
**Post date:** [April 26, 2022, 7:42pm UTC](https://forums.unrealengine.com/t/basic-spectating-system-not-working-as-intended-on-client/539611/6 "2022-04-26T19:42:23Z")

</div>

Yeah I did, and that **works** but since I’m using ALS it messes up a lot of the movement so that solution is out of the box for me. =(

Edit: I am trying to add a new springarm + camera as the spectator camera so I can switch to that when the target is dead but I cannot seem to make it work.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/d/0dd3c47a842488889eeb4392c6d6497f7abe4039.png)

Edit2: OK I managed to switch cameras however it is now super jittery. Not sure what it’s about nor what I could do to fix it… Any tips?

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/1/4919ac330f4672a6bb2505d854aa91dc906252b8.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/1/4919ac330f4672a6bb2505d854aa91dc906252b8.mp4)

Edit3: Seems like if I disable Use Pawn Control Rotation the jittering happens. However if I enable it, the rotation does not work as intended. 😅

**Final edit - FIXED:** It was Camera Lag causing the jittering. x) I had it enabled on one camera and not on the other. Enabling on both seems to fix the issue. Yay.
