Argument

From Bohemia Interactive Community
Revision as of 23:55, 15 November 2021 by Lou Montana (talk | contribs) (Text replacement - "<tt>([a-zA-Z0-9\. _"\\']+)<\/tt>" to "{{hl|$1}}")
Jump to navigation Jump to search

An argument is any value that is being passed to a scripting command or an executed script or function. In the script or function this value is considered a parameter.


Example:

[variable, 5, "string"] execVM "myScript.sqf"

The Array [variable, 5, "string"] and the contained values are called the arguments given to the script.

Access

In the script the argument can be accessed using the magic variable _this.

See also