BIS fnc objectVar: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(example)
mNo edit summary
Line 31: Line 31:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[[hint]] [[str]] ([[player]] [[call]] [[BIS_fnc_objectVar]]; //"BIS_fnc_objectVar_obj1"<br>[[hint]] [[str]] ([[player]] == 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 12:30, 2 April 2015

Hover & click on the images for description

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

Notes

Bottom Section