StartRecordingPlayerData: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc=Starts recording player movements to a file which can be reproduced by an NPC| params=<syntaxhighlight lang="lua">(playerid, recordtype, recordname[])</syntaxh...")
 
No edit summary
Line 4: Line 4:
<poem>::playerid : The ID of the player whose actions to be recorded
<poem>::playerid : The ID of the player whose actions to be recorded
::recordtype : The [[RecordingTypes|type]] of the recording.
::recordtype : The [[RecordingTypes|type]] of the recording.
::recordname : The name of the file which will store the data. The file will be saved in npcscripts/recordings with an automatically added .rec extension.</poem>|
::recordname : The name of the file which will store the data. The file will be saved in npcscripts/recordings with an automatically added [[.rec_file|.rec]] extension.</poem>|
retvals=This function does not return any specific values.|
retvals=This function does not return any specific values.|
example=<source lang="lua">
example=<source lang="lua">

Revision as of 06:21, 10 March 2022


Description:
Starts recording player movements to a file which can be reproduced by an NPC


Parameters:

(playerid, recordtype, recordname[])

playerid : The ID of the player whose actions to be recorded
recordtype : The type of the recording.
recordname : The name of the file which will store the data. The file will be saved in npcscripts/recordings with an automatically added .rec extension.


Return Values:
This function does not return any specific values.


Example

Related Functions

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