Need In-Game Bots Help! {REP}
#4

Quote:
Originally Posted by CopKing123
Посмотреть сообщение
ok after dat what i do??
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):

Код:
#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();
}
PS: replace the xxx...with your file name

//Edit: And in the GameMode you must write:

Код:
//under OnGameModeInit
ConnectNPC("Peter","xxx");
Reply


Messages In This Thread
Need In-Game Bots Help! {REP} - by CopKing123 - 11.03.2015, 14:23
AW: Need In-Game Bots Help! {REP} - by Kaliber - 11.03.2015, 14:28
Re: AW: Need In-Game Bots Help! {REP} - by CopKing123 - 11.03.2015, 14:32
AW: Re: AW: Need In-Game Bots Help! {REP} - by Kaliber - 11.03.2015, 14:36
Re: Need In-Game Bots Help! {REP} - by CopKing123 - 11.03.2015, 14:37
Re: Need In-Game Bots Help! {REP} - by CopKing123 - 11.03.2015, 14:43
AW: Need In-Game Bots Help! {REP} - by Kaliber - 11.03.2015, 14:48
Re: AW: Need In-Game Bots Help! {REP} - by CopKing123 - 11.03.2015, 14:49
AW: Re: AW: Need In-Game Bots Help! {REP} - by Kaliber - 11.03.2015, 14:50
Re: AW: Re: AW: Need In-Game Bots Help! {REP} - by CopKing123 - 11.03.2015, 17:44

Forum Jump:


Users browsing this thread: 9 Guest(s)