BIS fnc objectVar: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
m (Closed a parenthesis in the example.) |
||
Line 31: | Line 31: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[hint]] [[str]] ([[player]] [[call]] [[BIS_fnc_objectVar]]; //"BIS_fnc_objectVar_obj1"<br>[[hint]] [[str]] ([[player]] == ([[missionNamespace]] [[getVariable]] "BIS_fnc_objectVar_obj1")); //true</code> |= | |x1= <code>[[hint]] [[str]] ([[player]] [[call]] [[BIS_fnc_objectVar]]); //"BIS_fnc_objectVar_obj1"<br>[[hint]] [[str]] ([[player]] == ([[missionNamespace]] [[getVariable]] "BIS_fnc_objectVar_obj1")); //true</code> |= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 05:15, 27 September 2015
Description
- Description:
/* Description: Return an unique object variable. The variable is preserved after unit respawn. Parameter(s): 0: OBJECT 1 (Optional): STRING - variable name (number will be added behind it) Returns: STRING */
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
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
- See also:
- netIdobjectFromNetId
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