|
|
|
|
|
%scriptCall()
Aliases | %scriptCall( ) |
---|
Parameters | mixed @owner, string @name [, @param1 [, @param2 [, ...]]] |
---|
|
Runs the script owned by the owner entity which has the given name. The parameters are passed to the script and assume the variable names the script itself sets out for them. This function is used in conjunction with the catch_call_script trigger type which is described in the triggers documentation. This combination is powerful but you may be looking for the solution procided by the %scriptUsurp() function which your are STRONGLY advised to read about now. Note that if the script returns a value you can retrieve it by assigning the value of the running the function.
Example:
%scriptCall( @n, "repairItem" ) |
|
|
|
|
|
|
|