BIS fnc addCommMenuItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(explanation of text and expressionArguments)
Line 30: Line 30:
_supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli",nil,nil,""] [[call]] [[BIS_fnc_addCommMenuItem]]; {{codecomment|// don't show notification}}</code>
_supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli",nil,nil,""] [[call]] [[BIS_fnc_addCommMenuItem]]; {{codecomment|// don't show notification}}</code>


| [[BIS_fnc_removeCommMenuItem]], [[Arma_3_Communication_Menu]]
| [[BIS_fnc_removeCommMenuItem]], [[Arma 3: Communication Menu]]
}}
}}

Revision as of 10:08, 6 February 2021

Hover & click on the images for description

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): Any - 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): Any - 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

See also:
See also needed

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