BIS fnc objectVar: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Closed a parenthesis in the example.)
m (1 revision imported: BIS Functions update 2/7)
(No difference)

Revision as of 19:58, 20 May 2017

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