Parameter

From Bohemia Interactive Community
Revision as of 00:34, 22 December 2006 by Hardrock (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A parameter is a value that was passed to the actual script. All parameters (if any) are accessible over the array _this.


Example:

[5, "string"] execVM "script.sqf"

script.sqf

_number = _this select 0;
_string = _this select 1;

_number and _string are considered the parameters of the script.

See also