Skip to content

OnDemoRecordingStop

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnDemoRecordingStop( string RecordFilename, BasePlayer instance )
{
    Puts( "OnDemoRecordingStop works!" );
    return null;
}

Location

  • BasePlayer::StopServerDemoRecording()
csharp
public void StopServerDemoRecording()
{
	if (net != null && net.connection != null && net.connection.IsRecording && Interface.CallHook("OnDemoRecordingStop", net.connection.recordFilename, this) == null)
	{
		Debug.Log(ToString() + " recording stopped: " + net.connection.RecordFilename);
		net.connection.StopRecording();
		CancelInvoke(actionMonitorServerDemoRecording);
		Interface.CallHook("OnDemoRecordingStopped", net.connection.recordFilename, this);
//---

Released under the MIT License.