BIS_fnc_initInspectable

From Bohemia Interactive Community
Revision as of 08:57, 6 September 2017 by Str (talk | contribs)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
/*

	Description:
	Initialize inspectable object.
	Adds "Inspect" action to the object. When player activates it, full-screen detail of the objects is shown.

	Parameter(s):
		0: OBJECT - object on which the action is added
		1:
			STRING - texture
			ARRAY of following items:
				0: STRING - texture
				1 (Optional): NUMBER - index on which the texture will be mapped on the object using setObjectTexture. Use -1 to ignore. Default is 0.
				2 (Optional): NUMBER - aspect ratio. 0.5 means width will be 0.5 of the height. Default is -1, which means texture default.
			BOOL - show the full-screen preview instantly (following params are ignored)
		2: (Optional) STRING - text of the texture, shown after clicking on READ button. Ideally localized.
		3 (Optional): STRING - sound played when enetering full-screen preview. Class from CfgSounds.

	Examples:
		// Initialize
		[this,"#(argb,8,8,3)color(1,0,1,1)","Pink"] call bis_fnc_initInspectable;

		// Show preview instantly
		[myLeaflet,true] call bis_fnc_initLeaflet;

	Returns:
	NOTHING
*/

(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:

Additional Information

See also:
See also needed

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