BIS fnc addCommMenuItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Misc(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 10: Line 9:


|gr1= Communication Menu|GROUP1=
|gr1= Communication Menu|GROUP1=
____________________________________________________________________________________________


| Add [[Arma_3_Communication_Menu|communication menu]] to the given unit.
| Add [[Arma_3_Communication_Menu|communication menu]] to the given unit.


The item will be available in the Communication menu and visualized in comm menu icon area.|DESCRIPTION=
The item will be available in the Communication menu and visualized in comm menu icon area.|DESCRIPTION=
____________________________________________________________________________________________


| [owner,itemClass,textArguments,expressionArguments,notification] call [[BIS_fnc_addCommMenuItem]]; |SYNTAX=
| [owner,itemClass,textArguments,expressionArguments,notification] call [[BIS_fnc_addCommMenuItem]]; |SYNTAX=
Line 29: Line 26:


| [[Number]] - item ID, used in [[BIS_fnc_removeCommMenuItem]] |RETURNVALUE=
| [[Number]] - item ID, used in [[BIS_fnc_removeCommMenuItem]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli"] [[call]] [[BIS_fnc_addCommMenuItem]];
|x1= <code>_supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli"] [[call]] [[BIS_fnc_addCommMenuItem]];
_supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli",nil,nil,""] [[call]] [[BIS_fnc_addCommMenuItem]]; {{codecomment|// don't show notification}}</code> |EXAMPLE1=
_supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli",nil,nil,""] [[call]] [[BIS_fnc_addCommMenuItem]]; {{codecomment|// don't show notification}}</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[BIS_fnc_removeCommMenuItem]], [[Arma_3_Communication_Menu]] |SEEALSO=
| [[BIS_fnc_removeCommMenuItem]], [[Arma_3_Communication_Menu]] |SEEALSO=

Revision as of 22:42, 16 January 2021

Hover & click on the images for description

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.
Execution:
call
Groups:
Communication Menu

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

See also:
BIS_fnc_removeCommMenuItemArma_3_Communication_Menu

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section