BIS fnc removeCommMenuItem: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>(\[[a-zA-Z0-9_, ]*\] )?\[\[(call|spawn)\]\] \[\[(BI[NS]\_fnc\_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1$2 $3;</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ") |
||
Line 17: | Line 17: | ||
|x1= <sqf>[player,2] call BIS_fnc_removeCommMenuItem;</sqf> | |x1= <sqf>[player,2] call BIS_fnc_removeCommMenuItem;</sqf> | ||
|x2= <code>_supportHeli = [<nowiki/>[[player]],"Support_Request_CAS_Heli"] [[call]] [[BIS_fnc_addCommMenuItem]]; | |x2= <code>[[private]] _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> | ||
|seealso= [[BIS_fnc_addCommMenuItem]], [[Arma 3 Communication Menu]] | |seealso= [[BIS_fnc_addCommMenuItem]], [[Arma 3 Communication Menu]] | ||
}} | }} |
Revision as of 12:07, 6 May 2022
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:
- Example 2:
private _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