Difference between revisions of "getVariable"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m
Line 9: Line 9:
 
| Return the value of variable in the variable space of given object or location. In case of Alt Syntax usage in Arma 3, the default value will be returned if:
 
| Return the value of variable in the variable space of given object or location. In case of Alt Syntax usage in Arma 3, the default value will be returned if:
 
* Requested variable is either undefined or [[nil]]
 
* Requested variable is either undefined or [[nil]]
* Variable namespace is null ([[objNull, grpNull, etc.)
+
* Variable namespace is null ([[objNull]], [[grpNull]], etc.)  
 
All available data types combinations:
 
All available data types combinations:
 
* [[Namespace]] getVariable [[String]]
 
* [[Namespace]] getVariable [[String]]

Revision as of 19:23, 18 January 2017

Template:Command

Notes

Bottom Section

Posted on August 13, 2016 - 17:13 (UTC)
Ebay
NOTE: Arma 2 ONLY! In Arma 3 this will return default value. Warning: the alternative syntax returns undefined when the varspace is an object and that object is null. Example:
_test = objNull getVariable ["test","0"]; systemChat _test; Errors because _test is undefined. Tested in A2OA 1.63.131129