05.03.2011, 14:06
Why don`t you read the tutorial? It`s very well explained, for either on foot or in vehicle.
All you have to do is load the fs in game, record NPC move on foot using /ofrecord and /stoprecord.
Then, in the:
Change the:
to 2 (As you can see, it`s written there, 1 for vehicle and 2 for on foot.
Was that too hard ?
All you have to do is load the fs in game, record NPC move on foot using /ofrecord and /stoprecord.
Then, in the:
pawn Код:
#define RECORDING "mynpc" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.
#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
pawn Код:
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.
Was that too hard ?


