{"name":"infoPanelComponentEnabled","title":"infoPanelComponentEnabled","type":"command","url":"https://community.bistudio.com/wiki/infoPanelComponentEnabled","revid":377489,"updated":"2026-01-02T06:49:10Z","groups":["Custom Panels"],"status":"ok","games":{"arma3":"1.72"},"since":"arma3 1.72","arma3_since":"1.72","description":"Controls availability of component to given object info panel.","syntaxes":[{"syntax":"unit infoPanelComponentEnabled [panelID, componentClassOrType]","params":[{"name":"unit","type":"Object","description":"the concerned vehicle","type_expr":"Object"},{"name":"panelID","type":"String","description":"\"left\" or \"right\" can be used as panel names","type_expr":"String"},{"name":"componentClassOrType","type":"String","type_expr":"String"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if component was successfully enabled on the panel, false otherwise (e.g. component is not available for the object)"},"form":"binary","left":{"text":"unit"},"right":{"text":"[panelID, componentClassOrType]"}},{"syntax":"[unit, turretPath] infoPanelComponentEnabled [panelID, componentClassOrType]","params":[{"name":"unit","type":"Object","description":"the concerned vehicle","type_expr":"Object"},{"name":"turretPath","type":"Turret Path","description":"turret index","type_expr":"Turret Path"},{"name":"panelID","type":"String","description":"\"left\" or \"right\" can be used as panel names","type_expr":"String"},{"name":"componentClassOrType","type":"String","type_expr":"String"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"binary","left":{"text":"[unit, turretPath]"},"right":{"text":"[panelID, componentClassOrType]"}}],"examples":[{"code":["// returns true if specific component \"SensorDisplay\" is enabled on player vehicle's left panel\n_state = [vehicle player, [-1]] infoPanelComponentEnabled [\"VehicleSystemsDisplayManagerComponentLeft\", \"SensorDisplay\"];"]},{"code":["// returns true if all \"SensorsDisplayComponent\" components are enabled on player vehicle's left panel, otherwise returns false\n_state = [vehicle player, [-1]] infoPanelComponentEnabled [\"VehicleSystemsDisplayManagerComponentLeft\", \"SensorsDisplayComponent\"];"]}],"see_also":["Arma 3: Custom Info","infoPanel","infoPanels","setInfoPanel","infoPanelComponents","enableInfoPanelComponent"]}