# Problem with spectating another player

**URL:** <https://forums.unrealengine.com/t/problem-with-spectating-another-player/451079>\
**Category:** Multiplayer & Networking\
**Tags:** lag, spectator, unreal-engine, fps, Multiplayer, Blueprint, question\
**Created:** [June 21, 2019, 8:21pm UTC](https://forums.unrealengine.com/t/problem-with-spectating-another-player/451079 "2019-06-21T20:21:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wiresharkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wiresharkk](https://forums.unrealengine.com/u/Wiresharkk)\
**Post date:** [June 21, 2019, 8:21pm UTC](https://forums.unrealengine.com/t/problem-with-spectating-another-player/451079/1 "2019-06-21T20:21:55Z")

</div>

Hello,

I am in the process of making a multiplayer shooter game, and I want players to spectate others when they die.  
If any client player dies, everything works properly, and he starts spectating the server player or any other without any problem.  
On the other hand tho, if the server player dies, he starts spectating a client correctly, but there’s a weird lag happening from the server camera that is very visible.

Here’s a video to show you what i mean:

[Example Video][1]

This is the blueprint that I used as an example to recreate my problem.

NOTE: this is not the actual game, it’s just a simple example that works for this circumstance, so on the get node I get a player state manually from the array by picking the one I need (0 for server player, and 1 for client player)

 ![280410-examplegraph1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/6/1b6cf0511c2fcc4c917df04974406604e52de1d2.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![AreWeGaming](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arewegaming/32/1174860_2.png) [@AreWeGaming](https://forums.unrealengine.com/u/AreWeGaming)\
**Post date:** [June 21, 2019, 10:08pm UTC](https://forums.unrealengine.com/t/problem-with-spectating-another-player/451079/2 "2019-06-21T22:08:02Z")

</div>

This might help  
If Clipping - Project Settings - General Settings - Near Clip Plane - Change to 1.0

---

<div class="post-metadata">

**Author:** ![Wiresharkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wiresharkk](https://forums.unrealengine.com/u/Wiresharkk)\
**Post date:** [June 22, 2019, 1:15pm UTC](https://forums.unrealengine.com/t/problem-with-spectating-another-player/451079/3 "2019-06-22T13:15:16Z")

</div>

Tried it, didn’t work.  
I am not sure if I explained myself correctly tho, I meant that when I play the game when the server dies the pawn that he starts spectating start lagging on his screen, while the actual client player is not lagging.  
Thank you anyways!

---

<div class="post-metadata">

**Author:** ![Wiresharkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wiresharkk](https://forums.unrealengine.com/u/Wiresharkk)\
**Post date:** [June 23, 2019, 12:16pm UTC](https://forums.unrealengine.com/t/problem-with-spectating-another-player/451079/4 "2019-06-23T12:16:34Z")

</div>

Noone wanna help me out?

---

<div class="post-metadata">

**Author:** ![AreWeGaming](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arewegaming/32/1174860_2.png) [@AreWeGaming](https://forums.unrealengine.com/u/AreWeGaming)\
**Post date:** [June 23, 2019, 4:04pm UTC](https://forums.unrealengine.com/t/problem-with-spectating-another-player/451079/5 "2019-06-23T16:04:22Z")

</div>

I have a Few questions, Are you using a separate camera to Spectate or is it the Follow Camera? then as i was looking at your Example Video have you tried being the Client and Spectate the Server? also  
in that BP script it says CastToPlayerController - Object Get Controller, Try Get Owning Player Controller [Screenshot - b44ca7ecf756743f546321e5d2eb1fde - Gyazo](https://gyazo.com/b44ca7ecf756743f546321e5d2eb1fde) this is for Camera Management

---

<div class="post-metadata">

**Author:** ![Wiresharkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wiresharkk](https://forums.unrealengine.com/u/Wiresharkk)\
**Post date:** [June 25, 2019, 1:08pm UTC](https://forums.unrealengine.com/t/problem-with-spectating-another-player/451079/6 "2019-06-25T13:08:32Z")

</div>

That solved my problem, thank you so much! I was getting the player controller instead of the owning player controller. Thank you so much again!!

---

<div class="post-metadata">

**Author:** ![AreWeGaming](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arewegaming/32/1174860_2.png) [@AreWeGaming](https://forums.unrealengine.com/u/AreWeGaming)\
**Post date:** [June 25, 2019, 3:10pm UTC](https://forums.unrealengine.com/t/problem-with-spectating-another-player/451079/7 "2019-06-25T15:10:43Z")

</div>

No Problem
