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:
- owner: Object - object to which the item belongs
- itemClass: String -
CfgCommunicationMenuclass - textArguments: Anything - (Optional) additional info to display in the
textattribute.%1will be replaced by the first array element,%2with the second and so on. - expressionArguments: Anything - (Optional) similar to textArguments, just this time in the
expressionattribute. - notification: String - (Optional) notification class from
CfgNotifications. Empty string will disabled the notification.
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