{"name":"BIS_fnc_addCommMenuItem","title":"BIS fnc addCommMenuItem","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_addCommMenuItem","revid":376524,"updated":"2025-10-23T22:35:51Z","groups":["Communication Menu"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"local","effect":"local"},"description":"Add communication menu to the given unit.\n\nThe item will be available in the Communication menu and visualized in comm menu icon area.","syntaxes":[{"syntax":"[owner, itemClass, textArguments, expressionArguments, notification] call BIS_fnc_addCommMenuItem","params":[{"name":"owner","type":"Object","description":"object to which the item belongs","type_expr":"Object","text":"**owner**: Object - object to which the item belongs"},{"name":"itemClass","type":"String","description":"`CfgCommunicationMenu` class","type_expr":"String","text":"**itemClass**: String - `CfgCommunicationMenu` class"},{"name":"textArguments","type":"Anything","optional":true,"description":"additional info to display in the `text` attribute. `%1` will be replaced by the first array element, `%2` with the second and so on.","type_expr":"Anything","text":"**textArguments**: Anything - (Optional) additional info to display in the `text` attribute. `%1` will be replaced by the first array element, `%2` with the second and so on."},{"name":"expressionArguments","type":"Anything","optional":true,"description":"similar to **textArguments**, just this time in the `expression` attribute.","type_expr":"Anything","text":"**expressionArguments**: Anything - (Optional) similar to **textArguments**, just this time in the `expression` attribute."},{"name":"notification","type":"String","optional":true,"description":"notification class from `CfgNotifications`. Empty string will disabled the notification.","type_expr":"String","text":"**notification**: String - (Optional) notification class from `CfgNotifications`. Empty string will disabled the notification."}],"returns":{"type":"Number","type_expr":"Number","description":"item ID, used in BIS_fnc_removeCommMenuItem"}}],"examples":[{"code":["private _supportHeli = [player, \"Support_Request_CAS_Heli\"] call BIS_fnc_addCommMenuItem;\n_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"]}