NPC functions
#1

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?
Reply
#2

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.
Reply
#3

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?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)