# \[UE4 4.22.3 & C++\] How can I do a 'Point Of View' replay?

**URL:** <https://forums.unrealengine.com/t/ue4-4-22-3-c-how-can-i-do-a-point-of-view-replay/457082>\
**Category:** C++\
**Tags:** Replication, replay-system, replay, unreal-engine, CPP, question\
**Created:** [October 17, 2019, 7:58pm UTC](https://forums.unrealengine.com/t/ue4-4-22-3-c-how-can-i-do-a-point-of-view-replay/457082 "2019-10-17T19:58:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LDOGLONDON](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LDOGLONDON](https://forums.unrealengine.com/u/LDOGLONDON)\
**Post date:** [October 17, 2019, 7:58pm UTC](https://forums.unrealengine.com/t/ue4-4-22-3-c-how-can-i-do-a-point-of-view-replay/457082/1 "2019-10-17T19:58:32Z")

</div>

Hey all,

I’m trying to do a replay system where when you playback the replay you have the same point of view as when the replay was recorded. By this I mean the camera maintains the same position & rotation as it was when you controlled the character, and its attached to the character like in regular gameplay.

I have the basic replay working where you looking at the replay from a spectator point of view. But I would like to have it so the replay is from the point of view of the player recording the replay.

The biggest problem I’m running into now is how do I get the pawn that was possessed and controlled when the replay was being recorded? Also how would I replicated the HUD interactions happening on the pawns HUD?

If you have any insight on this please let me know.

-London

---

<div class="post-metadata">

**Author:** ![LDOGLONDON](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LDOGLONDON](https://forums.unrealengine.com/u/LDOGLONDON)\
**Post date:** [October 21, 2019, 4:58pm UTC](https://forums.unrealengine.com/t/ue4-4-22-3-c-how-can-i-do-a-point-of-view-replay/457082/2 "2019-10-21T16:58:15Z")

</div>

Idk why this term didn’t occur to me in the first place, But I essentially want a first person replay system. With the HUD and everything being played back as it happened during the recording. Does anyone know how to achieve this?

---

<div class="post-metadata">

**Author:** ![LDOGLONDON](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LDOGLONDON](https://forums.unrealengine.com/u/LDOGLONDON)\
**Post date:** [October 23, 2019, 5:33pm UTC](https://forums.unrealengine.com/t/ue4-4-22-3-c-how-can-i-do-a-point-of-view-replay/457082/3 "2019-10-23T17:33:44Z")

</div>

I did this by creating a little actor that followed and recorded (via a NetMulticast function) the position and rotation of the PlayerCameraManager found on the player controller. Then when the replay started I my ReplayPlayerController found that actor (which is replicated) and moved based off of the recorded camera position and rotation. I also smoothed out the ReplayPlayerController movement because it was a little jittery, even at higher recording Hz.

I smoothed it like this:

```
// smooth things out
// replayLoc & replayRot are the places the replay camera should be

FVector locDiff = replayLoc - sPawn->GetActorLocation();
float locMult = FMath::Clamp(Delta * 25.0f, 0.0f, 1.0f);
sPawn->SetActorLocation(sPawn->GetActorLocation() + locDiff * locMult);
		
FRotator rotDiff = (replayRot - ControlRotation).GetNormalized();
float rotMult = FMath::Clamp(Delta * 15.f, 0.0f, 1.0f);
ControlRotation += rotDiff * rotMult;

```

now i’m trying to figure out the HUD.

Hopefully this answer helped you out. I’ve looked around a lot for an answer for this… I don’t think one really exists.

---

<div class="post-metadata">

**Author:** ![DaveThePhoenix00](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davethephoenix00/32/88712_2.png) [@DaveThePhoenix00](https://forums.unrealengine.com/u/DaveThePhoenix00)\
**Post date:** [May 18, 2021, 8:36pm UTC](https://forums.unrealengine.com/t/ue4-4-22-3-c-how-can-i-do-a-point-of-view-replay/457082/4 "2021-05-18T20:36:08Z")

</div>

Hi LDOGLONDON, did you managed to replicate the original local player HUD as well?

---

<div class="post-metadata">

**Author:** ![HeroRisenI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HeroRisenI](https://forums.unrealengine.com/u/HeroRisenI)\
**Post date:** [August 14, 2024, 1:15am UTC](https://forums.unrealengine.com/t/ue4-4-22-3-c-how-can-i-do-a-point-of-view-replay/457082/5 "2024-08-14T01:15:16Z")

</div>

Hey man! This could very well be the solution to the problem I’m having right now, I’m just wondering how you accomplished this, as you can’t actually “move” a player controller.
