BIS_fnc_initInspectable

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.76
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.76

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)
Example 1:
Example needed

See also:

See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section