Arma 3 Scripting

Command in Custom Panels

setInfoPanel

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

Description

Opens given component or first component of given component type on specified info panel.

Syntax

setInfoPanel [infoPanelId, componentClassOrType]

Parameters:

Returns: Boolean - true if panel was successfully opened, false otherwise (e.g. opening GPS on player without GPS item or setting panel to vehicle that doesn't have such capability configured)

Examples

Example 1

// opens slingload assistant on right panel
private _result = setInfoPanel ["VehicleSystemsDisplayManagerComponentRight", "SlingLoadDisplayComponent"];
if (!_result) then { hint "could not open the slingload assistant, sorry" };

See also

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