11.03.2015, 14:36
To finish recording, you do: /stoprecord
Then you have in your scriptfiles an xxx.rec file.
That you put in the npcmodes/records directory...and then write a NPC-Script for your NPC.
Example for the NPC-Skript (to foot):
PS: replace the xxx...with your file name
//Edit: And in the GameMode you must write:
Then you have in your scriptfiles an xxx.rec file.
That you put in the npcmodes/records directory...and then write a NPC-Script for your NPC.
Example for the NPC-Skript (to foot):
Код:
#include <a_npc> #define DATA_NAME "xxx" main(){} public OnRecordingPlaybackEnd() { StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,DATA_NAME); } public OnNPCSpawn() { StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,DATA_NAME); } public OnNPCExitVehicle() { StopRecordingPlayback(); }
//Edit: And in the GameMode you must write:
Код:
//under OnGameModeInit ConnectNPC("Peter","xxx");