Arma 3 Scripting

Command in Custom Panels

infoPanelComponentEnabled

Also available as Markdown and JSON, or read the original wiki page.

Description

Controls availability of component to given object info panel.

Syntax

Syntax 1

unit infoPanelComponentEnabled [panelID, componentClassOrType]

Parameters:

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:

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