BIS fnc removeCommMenuItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Some wiki formatting)
 
(35 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 0.50


| arma3 |= Game name
|eff= local|gr1= Communication Menu


|1.00|= Game version
|descr= Remove an item from the [[Arma_3_Communication_Menu|communication menu]].
____________________________________________________________________________________________


| <pre>/*
|s1= [owner,itemID] call [[BIS_fnc_removeCommMenuItem]]


Description:
|p1= '''owner''': [[Object]] - object to which the item belongs to
Remove an item from the communication menu
|p2= '''itemID''': [[Number]] - item ID returned by [[BIS_fnc_addCommMenuItem]] command


Parameter(s):
|r1= [[Boolean]] - true when the item was removed
0: OBJECT - object to which the item belongs to
1: NUMBER - item ID returned by BIS_fnc_addCommMenuItem command


Returns:
|x1= <sqf>[player, 2] call BIS_fnc_removeCommMenuItem;</sqf>
BOOL - true when the item was removed
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_removeCommMenuItem]]; --> |= Syntax
|x2= <sqf>
 
private _supportHeli = [player, "Support_Request_CAS_Heli"] call BIS_fnc_addCommMenuItem;
|p1= |= Parameter 1
[player, _supportHeli] call BIS_fnc_removeCommMenuItem;
 
</sqf>
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_addCommMenuItem]] [[Arma 3: Communication Menu]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:removeCommMenuItem}}]]
[[Category:Functions|{{uc:removeCommMenuItem}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:removeCommMenuItem}}]]

Latest revision as of 12:39, 13 July 2022

Hover & click on the images for description

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:
private _supportHeli = [player, "Support_Request_CAS_Heli"] call BIS_fnc_addCommMenuItem; [player, _supportHeli] call BIS_fnc_removeCommMenuItem;

Additional Information

See also:
BIS_fnc_addCommMenuItem Arma 3: Communication Menu

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