BIS fnc objectVar: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported: BIS Functions update 2/7) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|= | {{Function|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma3 | | | arma3 |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Return a unique object variable. The variable is preserved after unit respawn. |Description= | ||
____________________________________________________________________________________________ | |||
| [object'', varNameRoot''] call [[BIS_fnc_objectVar]] |Syntax= | |||
| | |p1= object: [[Object]] |Parameter 1= | ||
| | |p2= varNameRoot: [[String]] - (Optional, default "bis_o") - variable name root - a number will be added behind it |Parameter 2= | ||
| | | | [[String]] - generated variable name |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[hint]] [[str]] ([[player]] [[call]] [[BIS_fnc_objectVar]]); //"BIS_fnc_objectVar_obj1" | |x1= <code>[[hint]] [[str]] ([[player]] [[call]] [[BIS_fnc_objectVar]]); {{codecomment|// "BIS_fnc_objectVar_obj1"}} | ||
[[hint]] [[str]] ([[player]] == ([[missionNamespace]] [[getVariable]] "BIS_fnc_objectVar_obj1")); {{codecomment|// true}}</code> |Example 1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[netId]], [[objectFromNetId]]| | | [[netId]], [[objectFromNetId]], [[setVariable]], [[setVehicleVarName]] |See also= | ||
}} | }} | ||
Line 46: | Line 34: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:objectVar}}]] | |||
[[Category:Function Group: Objects|{{uc:objectVar}}]] | [[Category:Function Group: Objects|{{uc:objectVar}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:objectVar}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:objectVar}}]] |
Revision as of 15:04, 6 June 2018
Description
- Description:
- Return a unique object variable. The variable is preserved after unit respawn.
- Execution:
- call
- Groups:
- Uncategorised
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_fnc_objectVar_obj1" hint str (player == (missionNamespace getVariable "BIS_fnc_objectVar_obj1")); // true
Additional Information
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