Description
Returns array all info panels configured for given object or object and turret path.
Syntax
Syntax 1
infoPanels unit
Parameters:
unit: Object - the concerned vehicle
Returns: Array - format [[infoPanelId1, infoPanelShortcutId1], [infoPanelId2, infoPanelShortcutId2], ...]:
- infoPanelId: String - name of the info panel class as defined in vehicle config
- infopanelShortcutId: String - shortcut representation of infopanelId, currently are supported only shortcuts "left" and "right"
Syntax 2
infoPanels [unit, turretPath]
Parameters:
unit: Object - the concerned vehicleturretPath: Turret Path - turret index
Returns: Array - format [[infoPanelId1, infoPanelShortcutId1], [infoPanelId2, infoPanelShortcutId2], ...]:
- infoPanelId: String - name of the info panel class as defined in vehicle config
- infopanelShortcutId: String - shortcut representation of infopanelId, currently are supported only shortcuts "left" and "right"
Examples
Example 1
infoPanels [vehicle player, [0]];
See also
Arma 3: Custom Info · infoPanel · setInfoPanel · infoPanelComponents · enableInfoPanelComponent · infoPanelComponentEnabled · openGPS