# Orienting Spectator Camera to Different Perspectives while spectating other players

**URL:** <https://forums.unrealengine.com/t/orienting-spectator-camera-to-different-perspectives-while-spectating-other-players/497108>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, UE4-26, UE4, Blueprint, question\
**Created:** [February 11, 2022, 10:24pm UTC](https://forums.unrealengine.com/t/orienting-spectator-camera-to-different-perspectives-while-spectating-other-players/497108 "2022-02-11T22:24:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![srdallas81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@srdallas81](https://forums.unrealengine.com/u/srdallas81)\
**Post date:** [February 11, 2022, 10:24pm UTC](https://forums.unrealengine.com/t/orienting-spectator-camera-to-different-perspectives-while-spectating-other-players/497108/1 "2022-02-11T22:24:32Z")

</div>

I am currently trying to implement a spectator pawn that can spectate characters stored within a list in the game state. I am currently able to spectate those characters in that list and switch between them but the functionality to swap perspectives between first/third/top-down is not working at all. Here are my blueprints:  
Spectator Pawn BPs -  
[![Imgur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/e/9ee2861a01976d5867aaba08e4181c69ce38362e.png "Imgur: The magic of the Internet") ](https://imgur.com/n5JkCyb)  
[![Imgur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/d/c0da8e5d887a2499d7bb03c34645d1a7e8c77b3b.png "Imgur: The magic of the Internet") ](https://imgur.com/eQkYnfn)  
ThirdPersonCharacter BPs and Viewport -

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/4/7a4d59689cbefae50767bc10ec3b1b19b4574c16.png)  
[![Imgur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/8/d28b64903cd63be626f0638463813882884ebc6d.jpeg "Imgur: The magic of the Internet") ](https://imgur.com/3hp7Y0N)  
[![Imgur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/6/9d6054c8ce1fa3cd8d80a0433f93ccf5b686bd12.png "imgur.com") ](https://imgur.com/vpfo37y)

Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [February 11, 2022, 11:54pm UTC](https://forums.unrealengine.com/t/orienting-spectator-camera-to-different-perspectives-while-spectating-other-players/497108/2 "2022-02-11T23:54:50Z")

</div>

We did this by making the FirstPersonSpectator and ThirdPersonSpectator their own characters. Then you Possess() one or the other with SpectatorPlayerController() when switching spectate mode.

Its a bit more effort but nicely separates code / blueprint so much more readable / manageable.

---

<div class="post-metadata">

**Author:** ![srdallas81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@srdallas81](https://forums.unrealengine.com/u/srdallas81)\
**Post date:** [February 13, 2022, 11:05pm UTC](https://forums.unrealengine.com/t/orienting-spectator-camera-to-different-perspectives-while-spectating-other-players/497108/4 "2022-02-13T23:05:13Z")

</div>

I’m not sure I’m completely following what you’re describing. Could you further explain how you would keep the FirstPersonCharacter and ThirdPersonCharacters location and camera in sync with the player they are spectating?

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [February 14, 2022, 12:26am UTC](https://forums.unrealengine.com/t/orienting-spectator-camera-to-different-perspectives-while-spectating-other-players/497108/5 "2022-02-14T00:26:16Z")

</div>

Depends on what networking model you are using. If using Unreal standard replication you could probably just attach the spectator to the spectated character. If using some 3rd party networking (that’s what we do) then interpolate the spectator based on incoming transforms of the character being spectated.

---

<div class="post-metadata">

**Author:** ![srdallas81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@srdallas81](https://forums.unrealengine.com/u/srdallas81)\
**Post date:** [February 14, 2022, 2:32am UTC](https://forums.unrealengine.com/t/orienting-spectator-camera-to-different-perspectives-while-spectating-other-players/497108/7 "2022-02-14T02:32:09Z")

</div>

How would you set up those interpolations based on incoming transforms? Within a tick event inside the spectator pawn?

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [February 14, 2022, 7:30pm UTC](https://forums.unrealengine.com/t/orienting-spectator-camera-to-different-perspectives-while-spectating-other-players/497108/8 "2022-02-14T19:30:51Z")

</div>

There are many way to do it, but the basic idea is every Tick():

- read incoming messages
- farm the messages out the appropriate actors
- interp the spectator camera

We use FMath::VInterpTo() FMath::RInterpTo() and it is quite smooth interpolation even with a 10 HZ update rate.
