#4

Quote:
Originally Posted by mike_1
Посмотреть сообщение
yes but if i want a npc on foot?
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:

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
Change the:
pawn Код:
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.
to 2 (As you can see, it`s written there, 1 for vehicle and 2 for on foot.

Was that too hard ?
Reply


Messages In This Thread
bots - by mike_1 - 05.03.2011, 12:14
Re: bots - by HyperZ - 05.03.2011, 12:20
Re: bots - by mike_1 - 05.03.2011, 13:56
Re: bots - by antonio112 - 05.03.2011, 14:06
Re: bots - by OKStyle - 05.03.2011, 14:06
Re: bots - by mike_1 - 05.03.2011, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)