Warning: file_put_contents(/ff_51e8595449eb2feba56b278ef6058e0a7c6bd4c14062f7f5.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


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



vehiclename setVariable ["variablename", 177]