Recording a Characters movements and actions to apply to a "Ghost" in the future.

I haven’t used it yet so I don’t know how well it works or even if it would work for your needs, but take a look at the UE4 Builtin Replay System: Replay System | Unreal Engine Documentation