NPC's hate me
#4

Yeah NPCS are difficult to learn.
first, is your NPC on foot? or in a vehicle?

If on foot. Heres my "mynpc.pwn"
pawn Код:
#define RECORDING "mynpc" //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 == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
And in your mode.
Under ModeInIt
pawn Код:
ConnectNPC("MyFirstNPC","mynpc");
And under Request class, spawn, and such.
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
Reply


Messages In This Thread
NPC's hate me - by WillyP - 01.04.2011, 18:34
Re: NPC's hate me - by GoldenM4 - 01.04.2011, 18:36
Re: NPC's hate me - by WillyP - 01.04.2011, 18:37
Re: NPC's hate me - by -Rebel Son- - 01.04.2011, 18:40
Re: NPC's hate me - by WillyP - 01.04.2011, 18:42
Re: NPC's hate me - by -Rebel Son- - 01.04.2011, 18:46
Re: NPC's hate me - by WillyP - 01.04.2011, 18:47
Re: NPC's hate me - by -Rebel Son- - 01.04.2011, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)