Recording and replaying gameplay footage during runtime

Hi all,

I was wondering if there is a way to record gameplay during runtime, store the footage, and then watch it whenever a player wants.
Like in Clash of Clan.

I’ve googled for quite a while but I can’t find an answer. Any answer, information or advice would be greatly appreciated.

Cheers.

Here you are:

You can call the console commands from blueprints. Right click and search for exec…then you should find the right node. Then you can record the game and replay it whenever you want.

Thanks for the reply.
Actually I’ve already tried that. Maybe I should have mentioned.
The built-in replay function does work, but as far as I’ve experienced it only replicates movement of actors. And by movement, I mean location of the actors. Unlike what I need, which is literally recording everything such as animation and particle effects.
And the movement of the actors wasn’t perfectly replicated. It was kinda laggy.

Or maybe I’m doing something wrong. I simply set actors to be replicated(I remember there was a boolean value called replicate movement. I set it to true), and then recorded. Is there any extra step that I should have taken?