BIS_fnc_addCommMenuItem

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 0.500.50Arguments of this scripting function have to be local to the client the function is executed onEffects of this scripting function are not broadcasted over the network and remain local to the client the function is executed on
Hover & click on the images for descriptions

Description

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

Syntax:
[owner,itemClass,textArguments,expressionArguments,notification] call BIS_fnc_addCommMenuItem;
Parameters:
owner: Object - object to which the item belongs to
itemClass: String - CfgCommunicationMenu class
textArguments (Optional): Any
expressionArguments (Optional): Any
notification (Optional): String - notification class from CfgNotifications. Empty string will disabled the notification.
Return Value:
Number - item ID, used in BIS_fnc_removeCommMenuItem

Examples

Example 1:
_supportHeli = [player,"Support_Request_CAS_Heli"] call BIS_fnc_addCommMenuItem; _supportHeli = [player,"Support_Request_CAS_Heli",nil,nil,""] call BIS_fnc_addCommMenuItem; // don't show notification

Additional Information

Execution:
call
See also:
BIS_fnc_removeCommMenuItemArma_3_Communication_Menu
Groups:
Communication Menu

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section