BIS fnc removeCommMenuItem: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|0.50 | |0.50 | ||
|eff= local |MPEFFECTS= | |eff= local |MPEFFECTS= | ||
|gr1 = Communication Menu | |gr1 = Communication Menu | ||
| Remove an item from the [[Arma_3_Communication_Menu|communication menu]]. | | Remove an item from the [[Arma_3_Communication_Menu|communication menu]]. | ||
| [owner,itemID] call [[BIS_fnc_removeCommMenuItem]]; | | [owner,itemID] call [[BIS_fnc_removeCommMenuItem]]; | ||
|p1= '''owner''': [[Object]] - object to which the item belongs to | |p1= '''owner''': [[Object]] - object to which the item belongs to | ||
|p2= '''itemID''': [[Number]] - item ID returned by [[BIS_fnc_addCommMenuItem]] command | |p2= '''itemID''': [[Number]] - item ID returned by [[BIS_fnc_addCommMenuItem]] command | ||
| [[Boolean]] - true when the item was removed | | [[Boolean]] - true when the item was removed | ||
|x1= <code>[player,2] [[call]] [[BIS_fnc_removeCommMenuItem]];</code> | |x1= <code>[player,2] [[call]] [[BIS_fnc_removeCommMenuItem]];</code> | ||
|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> | <nowiki>[</nowiki>[[player]],_supportHeli] [[call]] [[BIS_fnc_removeCommMenuItem]];</code> | ||
| [[BIS_fnc_addCommMenuItem]], [[Arma 3 Communication Menu]] | | [[BIS_fnc_addCommMenuItem]], [[Arma 3 Communication Menu]] | ||
}} | }} |
Revision as of 23:37, 17 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