RFC: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
{{Welcome|
{{Welcome|
desc=Call a function of npcscript from server.|
desc=Call a function of npcscript from server.|
params=<syntaxhighlight lang="lua">(npcid, [string]funcname)</syntaxhighlight>
<poem>::npcid : The ID of the target npc on whose environment the function will be searched.
::funcname : The name of the remote function</poem>|
}}
}}

Revision as of 18:31, 23 January 2023

This function was added in v1.6 beta and will not work on previous versions.


Description:
Call a function of npcscript from server.


Parameters:

(npcid, [string]funcname)

npcid : The ID of the target npc on whose environment the function will be searched.
funcname : The name of the remote function


Return Values:
This function does not return any specific values.