Warning: file_put_contents(/ff_c13f2e689b87287c0d53a522cd6d2a7465e7be3d9b99e316.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setVariable - OFPEC Scripting Command Reference | OFPEC The Editing Center

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]

Advertisement