Parameter: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (moved from ArmA: Scripting to Scripting Topics) |
||
Line 18: | Line 18: | ||
* [[Argument]] | * [[Argument]] | ||
[[Category: Scripting Topics]] | [[Category: Scripting Topics]] |
Revision as of 19:19, 22 December 2006
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.