simple NPC doesn't spawn
#1

I started getting used to manage npcs. I recorded a simple waving welcome motion with length about 10 sec. I add this line in a random non-npc filterscript:
pawn Код:
public OnFilterScriptInit()
{
    print("   Loaded successful.");
    ConnectNPC("Welcome","wave_npc"); //wave_npc is the name of the npc filterscript which follows down
    return 1;                        //and it is located in the folder \npcmodes
}
Next I created a npc filterscript which is used above and this is the whole of it:
pawn Код:
#include <a_npc.inc>

main() {}

public OnNPCSpawn() StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,"wave");

public OnRecordingPlaybackEnd() StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,"wave");
wave is the .rec file
I open server and my ncp is not there, what am I doing wrong?
Reply
#2

Have you modify the maxnpc on server.cfg?
Reply
#3

Yes, I entered value 5 just to put something. I need only 1.
Reply
#4

Im not so familiar with NPC let me check somewhere
Reply
#5

Some help here.
Reply
#6

pawn Код:
public OnFilterScriptInit()
{
     ConnectNPC("Welcome","wave_npc");
     return 1;
}
"wave_npc.pwn" file:
pawn Код:
#include <a_npc>

main()
{
}

NextPlayback()
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,"wave_npc");
}

public OnRecordingPlaybackEnd()
{
    NextPlayback();
}
Reply
#7

Still nothing, I suppose its something I don't do correctly...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)