OnDemoRecordingStop
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnDemoRecordingStop( string RecordFilename, BasePlayer instance )
{
Puts( "OnDemoRecordingStop works!" );
}
Location
- BasePlayer::StopDemoRecording()
csharp
//---
}
if (!this.net.connection.IsRecording)
{
return;
}
if (Interface.CallHook("OnDemoRecordingStop", this.net.connection.recordFilename, this) != null)
{
return;
}
Debug.Log(this.ToString() + " recording stopped: " + this.net.connection.RecordFilename);
this.net.connection.StopRecording();
//---