getVariable

From Bohemia Interactive Community
Revision as of 03:27, 4 December 2008 by Kronzky (talk | contribs) (made case-sensitivity condition more visible)
Jump to navigation Jump to search
Introduced with Armed Assault version 1.001.00
Hover & click on the images for descriptions

Description

Description:
Return the value of variable in the variable space of given object or location.

Syntax

Syntax:
ObjectOrLocation getVariable name
Parameters:
ObjectOrLocation: Object or Location
name: String - Variable name that was defined in setVariable (Case sensitive)
Return Value:
Any Value

Examples

Example 1:
_aVariable = _myTruck getVariable "myVariable";

Additional Information

See also:
setVariablegetVariable (VBS2)

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section