Arma 3 Scripting

BIS_fnc_addCommMenuItem

  • Local argument
  • Local effect
  • Arma 3 v0.50

Function · Markdown · JSON · 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