Replay the user input

Hi all,

I am new to UE4, and recently I am working on a project that a replay function is necessary. What I mean “replay” here is that I want to:

(1) log user input data in a game

(2) replay the recorded data by given the logged user input (including keyboard, mouse and so on) to the character (skeleton or something) at each time step. Therefore, what I want is just to replay the character behaviors, and all related interactions with other objects will be simulated once again in the engine, not recorded.

I heard that there is a replay system, but there are limited materials about this, thus I am not sure if the system can achieve what I want.