BIS fnc addCommMenuItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.50|= Game version |eff= local |= ___...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 5: Line 4:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|0.50|= Game version
 
|eff= local |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Add [[Arma_3_Communication_Menu|communication menu]] to the given unit.
 
Description:
Add communication menu item to the given unit.
The item will be available in the Communication menu and visualized in comm menu icon area.
 
Parameter(s):
0: OBJECT - object to which the item belongs to
1: STRING - CfgCommunicationMenu class
2 (Optional): ANY - text arguments
3 (Optional): ANY - expression arguments
4 (Optional): STRING - notification class from CfgNotifications. Empty string will disabled the notification.


Returns:
The item will be available in the Communication menu and visualized in comm menu icon area.|= Description
NUMBER - item ID, used in BIS_fnc_removeCommMenuItem
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_addCommMenuItem]]; --> |= Syntax
| [owner,itemClass] spawn BIS_fnc_addCommMenuItem; |= Syntax


|p1= |= Parameter 1
|p1= '''owner''': [[Object]] - object to which the item belongs to |=
|p2= '''itemClass''': [[String]] - CfgCommunicationMenu class |=


| |= Return value
| [[Number]] - item ID, used in [[BIS_fnc_removeCommMenuItem]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
 
|x1= <code></code> |=  
|x1= <code>_supportHeli = [player,"Support_Request_CAS_Heli"] call BIS_fnc_addCommMenuItem;</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[Arma 3 Communication_Menu]] |= See also


}}
}}
Line 49: Line 37:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:addCommMenuItem}}]]
 
[[Category:Functions|{{uc:addCommMenuItem}}]]
[[Category:Arma 3:_Functions|addCommMenuItem]]
[[Category:{{Name|arma3}}: Functions|{{uc:addCommMenuItem}}]]

Revision as of 08:51, 16 May 2013

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:
Uncategorised

Syntax

Syntax:
[owner,itemClass] spawn BIS_fnc_addCommMenuItem;
Parameters:
owner: Object - object to which the item belongs to
itemClass: String - CfgCommunicationMenu class
Return Value:
Number - item ID, used in BIS_fnc_removeCommMenuItem

Examples

Example 1:
_supportHeli = [player,"Support_Request_CAS_Heli"] call BIS_fnc_addCommMenuItem;

Additional Information

See also:
Arma 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