BIS fnc addCommMenuItem: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
m (Text replacement - "{{Inline code|" to "{{ic|") |
||
Line 19: | Line 19: | ||
|p2= '''itemClass''': [[String]] - CfgCommunicationMenu class | |p2= '''itemClass''': [[String]] - CfgCommunicationMenu class | ||
|p3= '''textArguments''' (Optional): [[Anything]] - Additional info to display in the {{ | |p3= '''textArguments''' (Optional): [[Anything]] - Additional info to display in the {{ic|text}} attribute. {{ic|%1}} will be replaced by the first array element, {{ic|%2}} with the second and so on. | ||
|p4= '''expressionArguments''' (Optional): [[Anything]] - Similar to '''textArguments''', just this time in the {{ | |p4= '''expressionArguments''' (Optional): [[Anything]] - Similar to '''textArguments''', just this time in the {{ic|expression}} attribute. | ||
|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. |
Revision as of 18:09, 27 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Communication Menu
Syntax
- Syntax:
- Syntax needed
- 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:
- Return value needed
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