NPC functions - 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)
+--- Thread: NPC functions (
/showthread.php?tid=569956)
NPC functions -
KeNTos - 04.04.2015
Hi guys, sorry for my english.
When working with the NPC, I asked myself this question, is it possible to call functions PauseRecordingPlayback and ResumeRecordingPlayback in gamemode ?
how can - through CallRemoteFunction realties?
Re: NPC functions -
De4dpOol - 04.04.2015
If you want to call a function of a script from another script use,
CallRemoteFunction.
If you want to call a function of a script from the same script use,
CallLocalFunction.
EDIT: and yes, those callbacks can be called by either of the functions.
Re: NPC functions -
KeNTos - 04.04.2015
Quote:
Originally Posted by De4dpOol
If you want to call a function of a script from another script use, CallRemoteFunction.
If you want to call a function of a script from the same script use, CallLocalFunction.
EDIT: and yes, those callbacks can be called by either of the functions.
|
Thank you, I've tried, but was a failure.
Cann't show an example?
AW: NPC functions -
Mencent - 04.04.2015
Hello!
You find an example here:
https://sampwiki.blast.hk/wiki/CallRemoteFunction
https://sampwiki.blast.hk/wiki/CallLocalFunction
Also you can test it with an filterscript and an empty gamemode, e.g. grandlarc.