BIS fnc addCommMenuItem: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|0.50 | |0.50 | ||
|eff= local |MPEFFECTS= | |eff= local |MPEFFECTS= | ||
|arg= local |MPARGUMENTS= | |arg= local |MPARGUMENTS= | ||
|gr1= Communication Menu | |gr1= Communication Menu | ||
| 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. | The item will be available in the Communication menu and visualized in comm menu icon area. | ||
| [owner,itemClass,textArguments,expressionArguments,notification] call [[BIS_fnc_addCommMenuItem]]; | | [owner,itemClass,textArguments,expressionArguments,notification] call [[BIS_fnc_addCommMenuItem]]; | ||
|p1= '''owner''': [[Object]] - object to which the item belongs to | |p1= '''owner''': [[Object]] - object to which the item belongs to | ||
|p2= '''itemClass''': [[String]] - CfgCommunicationMenu class | |p2= '''itemClass''': [[String]] - CfgCommunicationMenu class | ||
|p3= '''textArguments''' (Optional): [[Any]] | |p3= '''textArguments''' (Optional): [[Any]] | ||
|p4= '''expressionArguments''' (Optional): [[Any]] | |p4= '''expressionArguments''' (Optional): [[Any]] | ||
|p5= '''notification''' (Optional): [[String]] - notification class from CfgNotifications. Empty string will disabled the notification. | |p5= '''notification''' (Optional): [[String]] - notification class from CfgNotifications. Empty string will disabled the notification. | ||
| [[Number]] - item ID, used in [[BIS_fnc_removeCommMenuItem]] | | [[Number]] - item ID, used in [[BIS_fnc_removeCommMenuItem]] | ||
|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> | _supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli",nil,nil,""] [[call]] [[BIS_fnc_addCommMenuItem]]; {{codecomment|// don't show notification}}</code> | ||
| [[BIS_fnc_removeCommMenuItem]], [[Arma_3_Communication_Menu]] | | [[BIS_fnc_removeCommMenuItem]], [[Arma_3_Communication_Menu]] | ||
}} | }} |
Revision as of 22:38, 17 January 2021
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
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