object setVariable [name, value]

Operand types

object: Object
[name, value]: Array

Type of returned value

Description

Set variable to given value in the variable space of given object.
Works on any entity which can be targeted by AI, including soldier and game logic units. This includes most buildings, but not other static objects.

Used In

ArmA

Example

vehiclename setVariable ["variablename", 177]
Search OFPEC COMREF