Arma 3 Scripting

Function in Object Manipulation

BIS_fnc_objectVar

Also available as Markdown and JSON, or read the original wiki page.

Description

Return a unique object variable. The variable is preserved after unit respawn.

Syntax

[object, varNameRoot] call BIS_fnc_objectVar

Parameters:

Returns: String - generated variable name

Examples

Example 1

hint str (player call BIS_fnc_objectVar); // "bis_o1"
hint str (player == (missionNamespace getVariable "bis_o1")); // true

See also

netId · objectFromNetId · setVariable · setVehicleVarName