[SOLVED] Controlling NPCs through a gamemode/filterscript
#6

Quote:
Originally Posted by FUNExtreme
The includes a_samp and a_npc can not be used togheter so currently the controlling of a npc is only possible in the npc script itself.
CallRemoteFunction won't work either as the npcscripts are not placed inside the filterscripts map.

Hope this helps you
I've tried with an include which has 2 functions, a function to set a value and a function to get it.
I have included that include in the gamemode and the NPC script, then set a timer in the NPC script which checks if the variable is set to some value, and if it is, it plays the playback (Yes, I have used StartRecordingPlayback in the NPC script, not the gamemode).
I have also set the value of the variable inside the gamemode, so now I'm totally clue-less why this doesn't work, it should, or I'm stupid.

EDIT: I have also tried to define variables in the gamemode and the NPC script, then set a timer and checked if that variable is set to a value...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)