Skip to main content

RunFunc

Runs a function script with arguments.

Syntax​

RunFunc script_to_run values_to_pass...?

Arguments​

NameRequiredTypeDescription
script to runYesName of a script to create
values to passNoAny valueThe values that will be passed to the function. These values must be compatible with the variables the function is expecting.

Possible errors​

  • Provided script is not a function
  • Provided arguments are incompatible with the function

On a running server​

Use serhelp RunFunc to inspect the reference generated by your installed SER version.