BIS fnc addCommMenuItem: Difference between revisions
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 | ||
| | |0.50|= Game version | ||
|eff= local |= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | 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 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [owner,itemClass] spawn BIS_fnc_addCommMenuItem; |= Syntax | ||
|p1= |= | |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:Arma 3:_Functions|addCommMenuItem]] | |||
[[Category: |
Revision as of 07:51, 16 May 2013
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