Description
Controls availability of component to given object info panel.
Syntax
Syntax 1
unit infoPanelComponentEnabled [panelID, componentClassOrType]
Parameters:
unit: Object - the concerned vehiclepanelID: String - "left" or "right" can be used as panel namescomponentClassOrType: String
Returns: Boolean - true if component was successfully enabled on the panel, false otherwise (e.g. component is not available for the object)
Syntax 2
[unit, turretPath] infoPanelComponentEnabled [panelID, componentClassOrType]
Parameters:
unit: Object - the concerned vehicleturretPath: Turret Path - turret indexpanelID: String - "left" or "right" can be used as panel namescomponentClassOrType: String
Returns: Boolean
Examples
Example 1
// returns true if specific component "SensorDisplay" is enabled on player vehicle's left panel
_state = [vehicle player, [-1]] infoPanelComponentEnabled ["VehicleSystemsDisplayManagerComponentLeft", "SensorDisplay"];
Example 2
// returns true if all "SensorsDisplayComponent" components are enabled on player vehicle's left panel, otherwise returns false
_state = [vehicle player, [-1]] infoPanelComponentEnabled ["VehicleSystemsDisplayManagerComponentLeft", "SensorsDisplayComponent"];
See also
Arma 3: Custom Info · infoPanel · infoPanels · setInfoPanel · infoPanelComponents · enableInfoPanelComponent