# Dedicated Server, demo recording

**URL:** <https://forums.unrealengine.com/t/dedicated-server-demo-recording/71631>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [August 16, 2016, 11:00am UTC](https://forums.unrealengine.com/t/dedicated-server-demo-recording/71631 "2016-08-16T11:00:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NEED\_A\_JACKET](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NEED\_A\_JACKET](https://forums.unrealengine.com/u/NEED_A_JACKET)\
**Post date:** [August 16, 2016, 11:00am UTC](https://forums.unrealengine.com/t/dedicated-server-demo-recording/71631/1 "2016-08-16T11:00:39Z")

</div>

So from my understanding, a dedicated server has no player controller and therefore no console, so I can’t simply add a blueprint executeconsolecommand node to run the demorec command.

Could someone explain how I could do this via C++ (assuming it’s not possible via BP)?

I saw an old post of someone mentioning calling StartRecordingReplay() manually, but I’m struggling to use that, I get access errors. I’m a bit confused how to cast it and call the function.

Also, I’d like to execute the demo.recordhz function to set the hz, or at least set a good default.

Thanks in advance for any help!
