StopRecordingPlayback: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc=This will stop the current .rec file which is being ran by the NPC. The NPC will stay idle for sometime until some command is given.| params=<syntaxhighlight l...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Welcome|
{{Welcome|
desc=This will stop the current .rec file which is being ran by the NPC. The NPC will stay idle for sometime until some command is given.|
desc=This will stop the current .rec file which is being ran by the NPC. The NPC will stay idle for sometime until some command is given.|
params=<syntaxhighlight lang="">The function has no paramters.</syntaxhighlight>|
params=<syntaxhighlight>The function has no paramters.</syntaxhighlight>|
retvals=This function does not return any specific values.|
retvals=null if the playback was not running, true otherwise.|
example=<source lang="lua">
example=<source lang="lua">
public OnNPCExitVehicle()
public OnNPCExitVehicle()
Line 8: Line 8:
     StopRecordingPlayback();
     StopRecordingPlayback();
}
}
</source>
</source>|
relfuncs=*[[StartRecordingPlayback]]
*[[PauseRecordingPlayback]]
*[[ResumeRecordingPlayback]]
}}
}}

Latest revision as of 19:10, 26 November 2022


Description:
This will stop the current .rec file which is being ran by the NPC. The NPC will stay idle for sometime until some command is given.


Parameters:

The function has no paramters.


Return Values:
null if the playback was not running, true otherwise.


Example

public OnNPCExitVehicle()
{
    StopRecordingPlayback();
}

Related Functions

The following functions may be helpful as they relate to this function in one way or another.