Description
Returns array of all components available to given object info panel.
Syntax
Syntax 1
unit infoPanelComponents panelID
Parameters:
Returns: Array with [className, componentType, isAccessible]
- className: String - component classname as defined in object/vehicle config
- componentType: String - componentType - component type
- isAccessible: Boolean - boolean flag that shows if component is currently accessible (lack of required item can make it temporarily inaccessible)
Syntax 2
[unit, turretPath] infoPanelComponents panelID
Parameters:
unit: Object - the concerned vehicleturretPath: Turret Path - turret indexpanelID: String - "left" or "right" can be used as panel names
Returns: Array with [className, componentType, isAccessible]
- className: String - component classname as defined in object/vehicle config
- componentType: String - componentType - component type
- isAccessible: Boolean - boolean flag that shows if component is currently accessible (lack of required item can make it temporarily inaccessible)
Examples
Example 1
// returns array of all components configured for _helicopter pilot seat
private _componentsData = [_helicopter, [-1]] infoPanelComponents "left";
See also
Arma 3: Custom Info · infoPanel · infoPanels · setInfoPanel · enableInfoPanelComponent · infoPanelComponentEnabled