{"name":"BIS_fnc_initInspectable","title":"BIS fnc initInspectable","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_initInspectable","revid":379271,"updated":"2026-10-30T23:44:19Z","groups":["Interaction"],"status":"ok","games":{"arma3":"1.76"},"since":"arma3 1.76","arma3_since":"1.76","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","params":[{"name":"inspectable","type":"Object","description":"object on which the action is added","type_expr":"Object"},{"name":"textureInfos","type":"String, Array or Boolean","description":"String, Array or Boolean\n\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**)","type_expr":"String | Array | Boolean","text":"textureInfos: String, Array or Boolean\n\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","description":"text to be shown after clicking on READ button. Ideally localized.","type_expr":"String"},{"name":"soundName","type":"String","description":"sound played when entering full-screen preview. Sould be defined in CfgSounds.","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[myLeaflet, \"#(argb,8,8,3)color(1,0,1,1)\", \"This is some Magic Pink\"] call BIS_fnc_initInspectable; // initialize"]},{"code":["[myLeaflet, true] call BIS_fnc_initInspectable; // Show preview instantly"]}],"see_also":["BIS_fnc_holdActionAdd","BIS_fnc_holdActionRemove"]}