RequestScriptPuke: Difference between revisions

no edit summary
(Remove Devfeature)
No edit summary
Tag: Source edit
 
Line 7: Line 7:


== Usage ==
== Usage ==
RequestScriptPuke will request the execution of the script of the given script with the given arguments on the server. NamedRequestScriptPuke is the same except with named scripts. Scripts called by this are automatically treated as "execute always" and thus don't need to be negative numbers.
RequestScriptPuke will request the execution of the script of the given script with the given arguments on the server. NamedRequestScriptPuke is the same except with named scripts. Scripts called by this are automatically treated as "execute always" and thus don't need to be negative numbers.


Line 19: Line 18:
If run offline, the script will be executed on the local machine.
If run offline, the script will be executed on the local machine.


==== Return value ====
=== Parameters ===
* ''script'': The number or name to execute.
* ''arg0'' .. ''arg3'': The arguments to be passed to the script.
 
=== Return value ===
'''1''' if the script execution was successfully requested, '''0''' if RequestScriptPuke() is called on the server or the requested script is not NET. Note that the function may return '''1''' and the script still may not be executed on the server due to the unreliableness of the packet.
'''1''' if the script execution was successfully requested, '''0''' if RequestScriptPuke() is called on the server or the requested script is not NET. Note that the function may return '''1''' and the script still may not be executed on the server due to the unreliableness of the packet.


Line 37: Line 40:
</syntaxhighlight>
</syntaxhighlight>


[[category:ACS Functions]]
[[category:ACS functions]]