CallRemoteFunction in NPC scripts - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CallRemoteFunction in NPC scripts (
/showthread.php?tid=206877)
CallRemoteFunction in NPC scripts -
godknightx - 04.01.2011
Hi
I used the CNPC plugin until now, but its not updated to 0.3c so i need use the SAMP NPC script.
But i have a problem, i can't use the CallRemoteFunction in npc script, which is important to my mode.
How can i use it? Any idea?
Thanx
Re: CallRemoteFunction in NPC scripts -
Rachael - 04.01.2011
instead of using CallRemoteFunction() , try setting up a special command(s) for NPC's in your gamemode and use SendCommand() in the npc script.
Re: CallRemoteFunction in NPC scripts -
godknightx - 05.01.2011
Okey, and how can i call my NPC Script functions?
Edit: Okey i solved with SendChat from NPC-s, and with SendClientMessage from the Main Gamemode