From Bohemia Interactive Community
Jump to navigation
Jump to search
Hover & click on the images for description
Description
- Description:
- Create the commanding menu described by the given config class or menu name. When the name is empty, the current menu is hidden.
If commanding menu has "expression" set up, the expression will receive the following arguments when user activated the menu item:
- Local variable _target: Object - Target under the cursor. This works in both 3D and 2D (when cursor is over the unit icon on the map).
- Local variable _pos: Array - Cursor position.
- Local variable _is3D: Boolean - false if cursor is over the map, otherwise true.
- Groups:
- Interaction
Syntax
- Syntax:
- showCommandingMenu name
- Parameters:
- name: String - Class name or user menu name (with "#USER:" prefix and "_#" page number suffix, where # is the page number starting with 0).
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
Additional Information
- See also:
- commandingMenu Arma 3: Communication Menu BIS_fnc_createMenu
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
-
- Posted on July 22nd, 2012 - 15:37 (GMT+1)
- LaKing
-
Appendix, list of optional argument strings:
- AmmoLow
- AreActions
- CanAnswer
- CanDeselectTeamFromBar
- CanDeselectUnitFromBar
- CanDeselectVehicleFromBar
- CanSelectTeamFromBar
- CanSelectUnitFromBar
- CanSelectVehicleFromBar
- CommandsToGunner
- CommandsToPilot
- CursorOnEmptyVehicle
- CursorOnEnemy
- CursorOnFriendly
- CursorOnGround
- CursorOnGroupMember
- CursorOnGroupMemberSelected
- CursorOnHoldingFire
- CursorOnNeedFirstAID
- CursorOnNeedHeal
- CursorOnNotEmptySubgroups
- CursorOnVehicleCanGetIn
- FormationDiamond
- FormationLine
- FuelLow
- HasRadio
- HCCanDeselectTeamFromBar
- HCCanDeselectUnitFromBar
- HCCanSelectTeamFromBar
- HCCanSelectUnitFromBar
- HCCursorOnIcon
- HCCursorOnIconenemy
- HCCursorOnIconSelectable
- HCCursorOnIconSelectableSelected
- HCIsLeader
- HCNotEmpty
- Injured
- IsAlone
- IsAloneInVehicle
- IsCommander
- IsLeader
- IsSelectedToAdd
- IsTeamSwitch
- IsWatchCommanded
- IsXbox
- Multiplayer
- NotEmpty
- NotEmptyBlueTeam
- NotEmptyCommanders
- NotEmptyGreenTeam
- NotEmptyInVehicle
- NotEmptyMainTeam
- NotEmptyRedTeam
- NotEmptySoldiers
- NotEmptySubgroups
- NotEmptyYellowTeam
- PlayableLeader
- PlayableSelected
- PlayerOwnRadio
- PlayerVehicleCanGetIn
- SelectedTeam
- SelectedUnit
- SomeSelectedHaveTarget
- SomeSelectedHoldingFire
- VehicleCommander
- Posted on July 23, 2016 - 14:40 (UTC)
- SilentSpike
-
You can combine the argument strings (see the above note) together to create OR conditions.
Hence "HasRadioIsLeader" is true when the unit is a leader or has a radio.