BIS fnc objectVar: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 17: | Line 17: | ||
|x1= <code>hint str (player call BIS_fnc_objectVar); {{cc|"bis_o1"}} | |x1= <code>hint str (player call BIS_fnc_objectVar); {{cc|"bis_o1"}} | ||
hint str (player == (missionNamespace | hint str (player == (missionNamespace getVariable "bis_o1")); {{cc|true}}</code> | ||
|seealso= [[netId]] [[objectFromNetId]] [[setVariable]] [[setVehicleVarName]] | |seealso= [[netId]] [[objectFromNetId]] [[setVariable]] [[setVehicleVarName]] | ||
}} | }} |
Revision as of 21:41, 12 July 2022
Description
- Description:
- Return a unique object variable. The variable is preserved after unit respawn.
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [object, varNameRoot] call BIS_fnc_objectVar
- Parameters:
- object: Object
- varNameRoot: String - (Optional, default "bis_o") - variable name root - a number will be added behind it
- Return Value:
- String - generated variable name
Examples
- Example 1:
hint str (player call BIS_fnc_objectVar); // "bis_o1" hint str (player == (missionNamespace getVariable "bis_o1")); // true
Additional Information
- See also:
- netId objectFromNetId setVariable setVehicleVarName
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note