Arma 3 Scripting

Command in Custom Panels

enableInfoPanelComponent

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 enableInfoPanelComponent [panelID, componentClassOrType, enable]

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] enableInfoPanelComponent [panelID, componentClassOrType, enable]

Parameters:

Returns: Boolean - true if component was successfully enabled on the panel, false otherwise (e.g. component is not available for the object)

Examples

Example 1

// enables slingload assistant on player's vehicle right panel at driver position
[vehicle player, [-1]] enableInfoPanelComponent ["VehicleSystemsDisplayManagerComponentRight", "SlingLoadDisplay", true];

See also

Arma 3: Custom Info · infoPanel · infoPanels · setInfoPanel · infoPanelComponents · infoPanelComponentEnabled