NPC Playback
#1

EDIT:

pawn Код:
public OnNPCSpawn()
{
    if(fexist("npc.im"))
    {
        new File:npc = fopen("npc.im", io_read);
        fread(npc, npcread); fclose(npc);
    } else print("WARNING: Unabled to locate any NPC.IM file.");
}
I don't have any npc.im file. But i don't get the warning?
It's in an NPC script.
Reply
#2

You can make a cmd that connects an NPC and another cmd that sets the .rec file to play.
Reply
#3

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
You can make a cmd that connects an NPC and another cmd that sets the .rec file to play.
But I can't add a_npc include & use StartRecordingPlayback(); in normal filterscripts.. :/
Reply
#4

You still have to make the NPC script.
Reply
#5

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
You still have to make the NPC script.
Yep, that's the problem.. I'll think of alternative methods.

I'll try to create a simple app which will convert the things for me in realtime.
Reply
#6

I mean you can use 1 NPC script for any recording.
Reply
#7

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
I mean you can use 1 NPC script for any recording.
Ok that probelm seems to be solved. Now I have another problem:

Edited above.
Reply
#8

Use SendClientMessage in a cmd in GM/FS to send the data to the NPC and then use OnClientMessage in NPC script for the playback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)