BIS fnc removeCommMenuItem: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|gr1 = Communication Menu |GROUP1= | |gr1 = Communication Menu |GROUP1= | ||
| Remove an item from the [[Arma_3_Communication_Menu|communication menu]].|DESCRIPTION= | | Remove an item from the [[Arma_3_Communication_Menu|communication menu]].|DESCRIPTION= | ||
| [owner,itemID] call [[BIS_fnc_removeCommMenuItem]]; |SYNTAX= | | [owner,itemID] call [[BIS_fnc_removeCommMenuItem]]; |SYNTAX= | ||
Line 20: | Line 17: | ||
| [[Boolean]] - true when the item was removed |RETURNVALUE= | | [[Boolean]] - true when the item was removed |RETURNVALUE= | ||
|x1= <code>[player,2] [[call]] [[BIS_fnc_removeCommMenuItem]];</code> |Example1= | |x1= <code>[player,2] [[call]] [[BIS_fnc_removeCommMenuItem]];</code> |Example1= | ||
Line 26: | Line 22: | ||
|x2= <code>_supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli"] [[call]] [[BIS_fnc_addCommMenuItem]]; | |x2= <code>_supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli"] [[call]] [[BIS_fnc_addCommMenuItem]]; | ||
<nowiki>[</nowiki>[[player]],_supportHeli] [[call]] [[BIS_fnc_removeCommMenuItem]];</code> |EXAMPLE2= | <nowiki>[</nowiki>[[player]],_supportHeli] [[call]] [[BIS_fnc_removeCommMenuItem]];</code> |EXAMPLE2= | ||
| [[BIS_fnc_addCommMenuItem]], [[Arma 3 Communication Menu]] |SEEALSO= | | [[BIS_fnc_addCommMenuItem]], [[Arma 3 Communication Menu]] |SEEALSO= |
Revision as of 23:46, 16 January 2021
Description
- Description:
- Remove an item from the communication menu.
- Execution:
- call
- Groups:
- Communication Menu
Syntax
- Syntax:
- [owner,itemID] call BIS_fnc_removeCommMenuItem;
- Parameters:
- owner: Object - object to which the item belongs to
- itemID: Number - item ID returned by BIS_fnc_addCommMenuItem command
- Return Value:
- Boolean - true when the item was removed
Examples
- Example 1:
[player,2] call BIS_fnc_removeCommMenuItem;
- Example 2:
_supportHeli = [player,"Support_Request_CAS_Heli"] call BIS_fnc_addCommMenuItem; [player,_supportHeli] call BIS_fnc_removeCommMenuItem;
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