BIS_fnc_objectVar

From Bohemia Interactive Community
Revision as of 05:15, 27 September 2015 by 654wak654 (talk | contribs) (Closed a parenthesis in the example.)
Jump to navigation Jump to search
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