About npc's - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: About npc's (
/showthread.php?tid=377143)
About npc's -
BigBaws - 12.09.2012
who can tell me why when i recorded a walking npc wont moving from his place but when i makea Driving npc it works perfectly thanks for your answers
Re: About npc's -
Youice - 13.09.2012
What command do you use for recording the npc?
if you are using "npc_record" FS.
then
Код:
/ofrecord <<< use this command while on foot.
/vrecord <<<use this command while in vehicle.
/stoprecord <<<use this command to stop the recording while on foot or in vehicle
Re : About npc's -
BigBaws - 13.09.2012
dude i already made the npc i already made the Vehicules npc's works perfectly i changed the Record_Type to 2 to makes it walking + .rec of walking npc but it just spawns & dont walks but other npc's of vehicles works perfectly
Re: About npc's -
Youice - 13.09.2012
pff, you said it "i already made the npc i already made the Vehicules npc's works perfectly i changed the Record_Type to 2 to makes it walking" try remaking it using
Re : About npc's -
BigBaws - 13.09.2012
Okey Guys to be clear for you i did
/ofrecord then i moved the .rec to Recording then i go to NPcModes & i made
Код:
#define RECORDING "footmini" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot.
#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#if RECORDING_TYPE == 2
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
after that i go on my FS i added
public OnFilterScriptInit()
{
ConnectNPC("Mini","1");
}
when i launche the server i see him connected & he dont Logout but he wont move ...