OnDemoRecordingStart
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnDemoRecordingStart( string text, BasePlayer instance )
{
Puts( "OnDemoRecordingStart works!" );
return null;
}Location
- BasePlayer::StartServerDemoRecording()
csharp
public void StartServerDemoRecording()
{
if (net != null && net.connection != null && !net.connection.IsRecording)
{
string text = $"demos/{UserIDString}/{DateTime.Now:yyyy-MM-dd-hhmmss}.dem";
if (Interface.CallHook("OnDemoRecordingStart", text, this) == null)
{
Debug.Log(ToString() + " recording started: " + text);
net.connection.StartRecording(text, new Demo.Header
{
version = Demo.Version,
//---