BIS fnc addCommMenuItem: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[[^ ]+\] (call|spawn) ('''|\[\[)BI(N|S)_fnc_[a-zA-Z0-9_]+('''|\]\]));? \| *p1 *=" to " |s1=$1 |p1=") |
||
Line 14: | Line 14: | ||
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]] | |s1=[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 |
Revision as of 19:31, 12 June 2021
Description
- Description:
- Description needed
- 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): Anything - Additional info to display in the
text
attribute.%1
will be replaced by the first array element,%2
with the second and so on. - expressionArguments (Optional): Anything - Similar to textArguments, just this time in the
expression
attribute. - 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