Arma 3 Scripting

Function in Communication Menu

BIS_fnc_addCommMenuItem

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

Description

Add communication menu to the given unit.

The item will be available in the Communication menu and visualized in comm menu icon area.

Syntax

[owner, itemClass, textArguments, expressionArguments, notification] call BIS_fnc_addCommMenuItem

Parameters:

Returns: Number - item ID, used in BIS_fnc_removeCommMenuItem

Examples

Example 1

private _supportHeli = [player, "Support_Request_CAS_Heli"] call BIS_fnc_addCommMenuItem;
_supportHeli = [player, "Support_Request_CAS_Heli", nil, nil, ""] call BIS_fnc_addCommMenuItem; // do not show notification

See also

BIS_fnc_removeCommMenuItem · Arma 3: Communication Menu