Argument: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Ilias38rus (talk | contribs) m (Simplifying the matter) |
||
Line 6: | Line 6: | ||
[variable, 5, "string"] [[execVM]] "myScript.sqf" | [variable, 5, "string"] [[execVM]] "myScript.sqf" | ||
<tt>variable | The [[Array]] <tt>[variable, 5, "string"]</tt> and the contained values are called the arguments given to the script. | ||
== Access == | == Access == |
Revision as of 15:42, 16 June 2020
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.