BIS fnc addCommMenuItem: Difference between revisions
Jump to navigation
Jump to search
MrPineapple (talk | contribs) m (added example) |
(Optional Parameters) |
||
Line 14: | Line 14: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [owner,itemClass] call [[BIS_fnc_addCommMenuItem]]; |= Syntax | | [owner,itemClass,textArguments,expressionArguments,notification] call [[BIS_fnc_addCommMenuItem]]; |= Syntax | ||
|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]] |= | |||
|p4= '''expressionArguments''' (Optional): [[Any]] |= | |||
|p5= '''notification''' (Optional): [[String]] - notification class from CfgNotifications. Empty string will disabled the notification. |= | |||
| [[Number]] - item ID, used in [[BIS_fnc_removeCommMenuItem]] |= Return value | | [[Number]] - item ID, used in [[BIS_fnc_removeCommMenuItem]] |= Return value | ||
Line 26: | Line 29: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[BIS_fnc_removeCommMenuItem]], [[ | | [[BIS_fnc_removeCommMenuItem]], [[Arma_3_Communication_Menu]] |= See also | ||
}} | }} |
Revision as of 07:46, 17 March 2015
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,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