{"name":"BIS_fnc_objectVar","title":"BIS fnc objectVar","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_objectVar","revid":328361,"updated":"2022-07-13T16:00:47Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Return a unique object variable. The variable is preserved after unit respawn.","syntaxes":[{"syntax":"[object, varNameRoot] call BIS_fnc_objectVar","params":[{"name":"object","type":"Object","type_expr":"Object"},{"name":"varNameRoot","type":"String","optional":true,"default":"\"bis_o\"","description":"variable name root - a number will be added behind it","type_expr":"String","text":"varNameRoot: String - (Optional, default \"bis_o\") - variable name root - a number will be added behind it"}],"returns":{"type":"String","type_expr":"String","description":"generated variable name"}}],"examples":[{"code":["hint str (player call BIS_fnc_objectVar); // \"bis_o1\"\nhint str (player == (missionNamespace getVariable \"bis_o1\")); // true"]}],"see_also":["netId","objectFromNetId","setVariable","setVehicleVarName"]}