How can i record players's actions and let another character repeat these actions by using c++?

Hey! Thanks for the reply, I am also trying to implement the same. Do you have more details on how to approach this? I am new to Unreal