{"name":"BIS_fnc_objectVar","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Return a unique object variable. The variable is preserved after unit respawn.","syntaxes":[{"syntax":"[object, varNameRoot] call BIS_fnc_objectVar","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"object: Object"},{"name":"varNameRoot","type":"String","optional":true,"default":"\"bis_o\"","description":"variable name root - a number will be added behind it","types":["String"],"since":null,"text":"varNameRoot: String - (Optional, default \"bis_o\") - variable name root - a number will be added behind it"}],"returns":{"type":"String","types":["String"],"description":"generated variable name","text":"String - generated variable name"}}],"examples":[{"text":"```sqf\nhint str (player call BIS_fnc_objectVar); // \"bis_o1\"\nhint str (player == (missionNamespace getVariable \"bis_o1\")); // true\n```","code":["hint str (player call BIS_fnc_objectVar); // \"bis_o1\"\nhint str (player == (missionNamespace getVariable \"bis_o1\")); // true"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["netId","objectFromNetId","setVariable","setVehicleVarName"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}