{"name":"BIS_fnc_initInspectable","operator":null,"title":"BIS fnc initInspectable","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_initInspectable","revid":376287,"updated":"2025-09-29T12:34:48Z","groups":["Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.76"}],"since":{"game":"arma3","name":"Arma 3","version":"1.76"},"arma3_since":"1.76","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Initialize inspectable object: add \"Inspect\" action to the object. When a player activates it, full-screen detail of the objects is shown.","syntaxes":[{"syntax":"[inspectable, textureInfos, fullScreenText, soundName] call BIS_fnc_initInspectable","since":null,"effect":null,"exec":null,"params":[{"name":"inspectable","type":"Object","optional":false,"default":null,"description":"object on which the action is added","types":["Object"],"since":null,"text":"inspectable: Object - object on which the action is added"},{"name":"textureInfos","type":"can be one of the following:","optional":true,"default":"0","description":"can be one of the following:\n- String - texture path\n- Array - [texture, index, aspectRatio]:\n  - texture: String - texture path\n  - index: Number -  index on which the texture will be mapped on the object using setObjectTexture. Use -1 to ignore.\n  - aspectRatio: Number - (Optional, default -1) texture aspect ratio. 0.5 means width will be 0.5 of the height. -1 means texture default.\n- Boolean - true to instantly show the *inspectable* full-screen preview (**following params are then ignored**)","types":[],"since":null,"text":"textureInfos: can be one of the following:\n- String - texture path\n- Array - [texture, index, aspectRatio]:\n  - texture: String - texture path\n  - index: Number - (Optional, default 0) index on which the texture will be mapped on the object using setObjectTexture. Use -1 to ignore.\n  - aspectRatio: Number - (Optional, default -1) texture aspect ratio. 0.5 means width will be 0.5 of the height. -1 means texture default.\n- Boolean - true to instantly show the *inspectable* full-screen preview (**following params are then ignored**)"},{"name":"fullScreenText","type":"String","optional":false,"default":null,"description":"text to be shown after clicking on READ button. Ideally localized.","types":["String"],"since":null,"text":"fullScreenText: String - text to be shown after clicking on READ button. Ideally localized."},{"name":"soundName","type":"String","optional":false,"default":null,"description":"sound played when entering full-screen preview. Sould be defined in CfgSounds.","types":["String"],"since":null,"text":"soundName: String - sound played when entering full-screen preview. Sould be defined in CfgSounds."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[myLeaflet, \"#(argb,8,8,3)color(1,0,1,1)\", \"This is some Magic Pink\"] call BIS_fnc_initInspectable; // initialize\n```","code":["[myLeaflet, \"#(argb,8,8,3)color(1,0,1,1)\", \"This is some Magic Pink\"] call BIS_fnc_initInspectable; // initialize"]},{"text":"```sqf\n[myLeaflet, true] call BIS_fnc_initInspectable; // Show preview instantly\n```","code":["[myLeaflet, true] call BIS_fnc_initInspectable; // Show preview instantly"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_holdActionAdd","BIS_fnc_holdActionRemove"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Interaction","Functions","Introduced with Arma 3 version 1.76"],"docblock":null,"filled_from_docblock":[]}