StopRecordingPlayback: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
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>The function has no paramters.</syntaxhighlight>| | params=<syntaxhighlight>The function has no paramters.</syntaxhighlight>| | ||
retvals= | 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.