Actions – Arma 3

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
 
(7 intermediate revisions by 3 users not shown)
Line 2: Line 2:
{{Feature|informative|
{{Feature|informative|
* See [[ArmA: Armed Assault: Actions]] for an introduction to Actions
* See [[ArmA: Armed Assault: Actions]] for an introduction to Actions
* Not to be confused with [[playAction]]}}
* Not to be confused with [[playAction]]
}}


= General Syntax =
= General Syntax =
Line 8: Line 9:
  '''''unit'' [[action]] [''"actionType"'', ''parameter(s)'']'''
  '''''unit'' [[action]] [''"actionType"'', ''parameter(s)'']'''


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
| ''unit'':
| ''unit'':
| [[Object#Unit|Object]]. Can be any occupied [[Object#Vehicle|vehicle]] or [[Object#Person|person]] that is not in a vehicle or also a [[Game Logic]].
| [[Object#Unit|Object]]. Can be any occupied [[Object#Vehicle|vehicle]] or [[Object#Person|person]] that is not in a vehicle or also a [[Game Logic]].
|- style="vertical-align: top"
|-
| ''"actionType"'':
| ''"actionType"'':
| [[String]]. Name of the action, found in the CfgActions class. Not case sensitive.
| [[String]]. Name of the action, found in the CfgActions class. Not case sensitive.
|- style="vertical-align: top"
|-
| ''parameter(s)'':
| ''parameter(s)'':
| Various [[Data_Types|data types]], dependant on the action used. The number of required parameters depends on the action type.
| Various [[Data_Types|data types]], dependant on the action used. The number of required parameters depends on the action type.
Line 26: Line 27:
== ActiveSensorsOn ==
== ActiveSensorsOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Activates the vehicle's active sensor (radar).
| style="width: 99%" | Activates the vehicle's active sensor (radar).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["ActiveSensorsOn", ''vehicle'']
| ''unit'' action ["ActiveSensorsOn", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["ActiveSensorsOn", vehicle player];</sqf>
| <sqf>player action ["ActiveSensorsOn", vehicle player];</sqf>
Line 44: Line 45:
== ActiveSensorsOff ==
== ActiveSensorsOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Deactivates the vehicle's active sensor (radar).
| style="width: 99%" | Deactivates the vehicle's active sensor (radar).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["ActiveSensorsOff", ''vehicle'']
| ''unit'' action ["ActiveSensorsOff", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["ActiveSensorsOff", vehicle player];</sqf>
| <sqf>player action ["ActiveSensorsOff", vehicle player];</sqf>
Line 62: Line 63:
== AddBag ==
== AddBag ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a unit to take backpack from another unit/vehicle or weaponholder.
| style="width: 99%" | Causes a unit to take backpack from another unit/vehicle or weaponholder.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''targetUnit'' action ["AddBag", ''sourceUnit'', ''"backpackName"'']
| ''targetUnit'' action ["AddBag", ''sourceUnit'', ''"backpackName"'']
|- style="vertical-align: top"
|-
|
|
| Where ''targetUnit'' is the person to recieve a backpack (the action animation will be performed), ''sourceUnit'' is either another unit/vehicle or weaponholder containing the backpack. ''"backpackName"'' is the classname (string) of the backpack to be picked up.
| Where ''targetUnit'' is the person to recieve a backpack (the action animation will be performed), ''sourceUnit'' is either another unit/vehicle or weaponholder containing the backpack. ''"backpackName"'' is the classname (string) of the backpack to be picked up.
|- style="vertical-align: top"
|-
! Note
! Note
| Bags can be picked up at any distance. To drop bag use "DropBag" action. If several backpacks of the same class name exist in the container, the oldest will be added first.
| Bags can be picked up at any distance. To drop bag use "DropBag" action. If several backpacks of the same class name exist in the container, the oldest will be added first.
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>soldierOne action ["AddBag", soldierTwo, backpack soldierTwo];</sqf>
| <sqf>soldierOne action ["AddBag", soldierTwo, backpack soldierTwo];</sqf>
Line 88: Line 89:
== ArtilleryComputer ==
== ArtilleryComputer ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Opens up Artillery Computer display just like the one in action menu for a mortar. Unit has to be in gunner position or display will immediately close.
| style="width: 99%" | Opens up Artillery Computer display just like the one in action menu for a mortar. Unit has to be in gunner position or display will immediately close.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["ArtilleryComputer", ''artillery'']
| ''unit'' action ["ArtilleryComputer", ''artillery'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''artillery'' is the artillery weapon
| Where ''unit'' is any unit, and ''artillery'' is the artillery weapon
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["ArtilleryComputer", mortarOne];</sqf>
| <sqf>soldierOne action ["ArtilleryComputer", mortarOne];</sqf>
Line 107: Line 108:
== AutoHover ==
== AutoHover ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Toggles auto-hovering on. Note that while the auto-hover status can be toggled on an AI crewed or even an empty vehicle, it will only affect a vehicle controlled by a human pilot.
| style="width: 99%" | Toggles auto-hovering on. Note that while the auto-hover status can be toggled on an AI crewed or even an empty vehicle, it will only affect a vehicle controlled by a human pilot.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["autoHover", ''targetVehicle'']
| ''unit'' action ["autoHover", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is any vehicle that is capable of hovering.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is any vehicle that is capable of hovering.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>chopperOne action ["autoHover", chopperOne];</sqf>
| <sqf>chopperOne action ["autoHover", chopperOne];</sqf>
Line 125: Line 126:
== AutoHoverCancel ==
== AutoHoverCancel ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Toggles auto-hovering off. Note that while the auto-hover status can be toggled on an AI crewed or even an empty vehicle, it will only affect a vehicle controlled by a human pilot.
| style="width: 99%" | Toggles auto-hovering off. Note that while the auto-hover status can be toggled on an AI crewed or even an empty vehicle, it will only affect a vehicle controlled by a human pilot.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["autoHoverCancel", ''targetVehicle'']
| ''unit'' action ["autoHoverCancel", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is any vehicle that is capable of hovering.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is any vehicle that is capable of hovering.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>chopperOne action ["autoHoverCancel", chopperOne];</sqf>
| <sqf>chopperOne action ["autoHoverCancel", chopperOne];</sqf>
Line 143: Line 144:
== BackFromUAV ==
== BackFromUAV ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Moves player control back from driver/gunner position of connected UAV. Does what "Release UAV controls" UI action does.
| style="width: 99%" | Moves player control back from driver/gunner position of connected UAV. Does what "Release UAV controls" UI action does.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''uav'' action ["BackFromUAV", ''unit'']
| ''unit'' action ["BackFromUAV"]
|- style="vertical-align: top"
|-
|
|
| Where ''uav'' is the connected UAV and ''unit'' is the player controlling it.
| Where ''unit'' is the connected UAV unit.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>getConnectedUAV player action ["BackFromUAV", player];</sqf>
| <sqf>getConnectedUAVUnit player action ["BackFromUAV"];</sqf>
|}
|}


== CancelAction ==
== CancelAction ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Cancels an action in progress. The target unit will complete it is current animation, although the action itself will not be performed.
| style="width: 99%" | Cancels an action in progress. The target unit will complete it is current animation, although the action itself will not be performed.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["cancelAction", ''targetUnit'']'''
| ''unit'' action ["cancelAction", ''targetUnit'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetUnit'' is any unit that is in the process of performing an action.
| Where ''unit'' is any unit (no action animation is performed) and ''targetUnit'' is any unit that is in the process of performing an action.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["CancelAction", soldierOne];</sqf>
| <sqf>soldierOne action ["CancelAction", soldierOne];</sqf>
Line 179: Line 179:
== CancelLand ==
== CancelLand ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Cancels autopilot landing for an aircraft, including AI controlled aircraft.
| style="width: 99%" | Cancels autopilot landing for an aircraft, including AI controlled aircraft.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["cancelLand", ''targetVehicle'']'''
| ''unit'' action ["cancelLand", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is any vehicle that is currently performing an autopilot landing.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is any vehicle that is currently performing an autopilot landing.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>planeOne action ["cancelLand", planeOne];</sqf>
| <sqf>planeOne action ["cancelLand", planeOne];</sqf>
Line 197: Line 197:
== CancelTakeFlag ==
== CancelTakeFlag ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Cancels taking of a flag. The unit will complete the taking/action animation, but the flag will remain attached to it is current object. This action needs to be executed while the flag is being taken (which happens after the unit completes the taking/action animation) to prevent a unit taking the flag. For example, if a person is taking a flag from a flagpole, then the cancelTakeFlag action should be executed while the flag is descending the flagpole.
| style="width: 99%" | Cancels taking of a flag. The unit will complete the taking/action animation, but the flag will remain attached to it is current object. This action needs to be executed while the flag is being taken (which happens after the unit completes the taking/action animation) to prevent a unit taking the flag. For example, if a person is taking a flag from a flagpole, then the cancelTakeFlag action should be executed while the flag is descending the flagpole.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["cancelTakeFlag", ''targetFlag'']
| ''unit'' action ["cancelTakeFlag", ''targetFlag'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit that is currently taking a flag (no action animation is performed) and ''targetFlag''' is a flag object.
| Where ''unit'' is any unit that is currently taking a flag (no action animation is performed) and ''targetFlag''' is a flag object.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>westSoldierOne action ["cancelTakeFlag", eastFlag];</sqf>
| <sqf>westSoldierOne action ["cancelTakeFlag", eastFlag];</sqf>
Line 215: Line 215:
== CollisionLightOff ==
== CollisionLightOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Turns off the collision lights of an air vehicle.
| style="width: 99%" | Turns off the collision lights of an air vehicle.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["CollisionLightOff", ''targetVehicle'']'''
| ''unit'' action ["CollisionLightOff", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["CollisionLightOff", vehicle player];</sqf>
| <sqf>player action ["CollisionLightOff", vehicle player];</sqf>
Line 233: Line 233:
== CollisionLightOn ==
== CollisionLightOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Turns on the collision lights of an air vehicle.
| style="width: 99%" | Turns on the collision lights of an air vehicle.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["CollisionLightOn", ''targetVehicle'']'''
| ''unit'' action ["CollisionLightOn", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["CollisionLightOn", vehicle player];</sqf>
| <sqf>player action ["CollisionLightOn", vehicle player];</sqf>
Line 251: Line 251:
== Deactivate ==
== Deactivate ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a unit to deactivate and take a active satchel charge placed by any unit. This action can be performed upon a satchel object from any distance.
| style="width: 99%" | Causes a unit to deactivate and take a active satchel charge placed by any unit. This action can be performed upon a satchel object from any distance.
Line 261: Line 261:
player action ["Deactivate", player, mine]; // deactivate
player action ["Deactivate", player, mine]; // deactivate
</sqf>
</sqf>
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["deactivate", ''targetUnit'', ''targetObject'']
| ''unit'' action ["deactivate", ''targetUnit'', ''targetObject'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (they will perform the action animation as if deactivating a satchel charge). ''targetUnit'' will have the deactivated satchel charge added to it is inventory. ''targetObject'' is the armed satchel object to be deactivated (class "pipeBomb" or "timeBomb").
| Where ''unit'' is any unit (they will perform the action animation as if deactivating a satchel charge). ''targetUnit'' will have the deactivated satchel charge added to it is inventory. ''targetObject'' is the armed satchel object to be deactivated (class "pipeBomb" or "timeBomb").
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>soldierOne action ["deactivate", soldierOne, mySatchelCharge];</sqf>
| <sqf>soldierOne action ["deactivate", soldierOne, mySatchelCharge];</sqf>
|- style="vertical-align: top"
|-
|
|
| <sqf>soldierOne action ["deactivate", soldierOne, nearestObject [soldierOne, "pipeBomb"]];</sqf>
| <sqf>soldierOne action ["deactivate", soldierOne, nearestObject [soldierOne, "pipeBomb"]];</sqf>
Line 278: Line 278:
== DeactivateMine ==
== DeactivateMine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a unit to deactivate any armed landmine that is within about two meters of a unit. Neither unit requires the ability to disable landmines.
| style="width: 99%" | Causes a unit to deactivate any armed landmine that is within about two meters of a unit. Neither unit requires the ability to disable landmines.
Line 285: Line 285:
NOTE: This action works only with mines that have been spotted by player (marked with triangle). Use "Deactivate" if you need to deactivate any mine.
NOTE: This action works only with mines that have been spotted by player (marked with triangle). Use "Deactivate" if you need to deactivate any mine.


|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["deactivateMine", ''targetUnit'']
| ''unit'' action ["deactivateMine", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, who will perform the action animation. The closest landmine to ''targetUnit'' will be deactivated.
| Where ''unit'' is any unit, who will perform the action animation. The closest landmine to ''targetUnit'' will be deactivated.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["deactivateMine", soldierOne];</sqf>
| <sqf>soldierOne action ["deactivateMine", soldierOne];</sqf>
Line 299: Line 299:
== Diary ==
== Diary ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Use and effects unknown.
| style="width: 99%" | Use and effects unknown.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["diary", ''<target>'']
| ''unit'' action ["diary", ''<target>'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 317: Line 317:
== Disassemble ==
== Disassemble ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Takes assembled weapon to parts (carry bags). Assembled weapon object reference may need to be kept for assembly. See also: [[enableWeaponDisassembly]]
| style="width: 99%" | Takes assembled weapon to parts (carry bags). Assembled weapon object reference may need to be kept for assembly. See also: [[enableWeaponDisassembly]]
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["Disassemble", ''weapon'']'''
| ''unit'' action ["Disassemble", ''weapon'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit and ''weapon'' is assembled weapon
| Where ''unit'' is any unit and ''weapon'' is assembled weapon
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["Disassemble", mortarOne];</sqf>
| <sqf>soldierOne action ["Disassemble", mortarOne];</sqf>
Line 335: Line 335:
== DropBag ==
== DropBag ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a unit to drop a backpack into another unit/vehicle. To drop backpack on the ground, a weaponholder object needs to be created first.
| style="width: 99%" | Causes a unit to drop a backpack into another unit/vehicle. To drop backpack on the ground, a weaponholder object needs to be created first.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''sourceUnit'' action ["DropBag", ''targetUnit'', ''"backpackName"'']
| ''sourceUnit'' action ["DropBag", ''targetUnit'', ''"backpackName"'']
|- style="vertical-align: top"
|-
|
|
| Where ''sourceUnit'' is the person to drop a backpack (the action animation will be performed), ''targetUnit'' is either another unit/vehicle into which the backpack will be dropped or a weaponholder. ''"backpackName"'' is the classname (string) of the backpack to be dropped.
| Where ''sourceUnit'' is the person to drop a backpack (the action animation will be performed), ''targetUnit'' is either another unit/vehicle into which the backpack will be dropped or a weaponholder. ''"backpackName"'' is the classname (string) of the backpack to be dropped.
|- style="vertical-align: top"
|-
! Note
! Note
| Bags can be dropped into other units at any distance. If targetUnit already has a backpack, sourceUnit's backpack will drop to the ground at targetUnit's feet, and be unavailable (for picking up/using).
| Bags can be dropped into other units at any distance. If targetUnit already has a backpack, sourceUnit's backpack will drop to the ground at targetUnit's feet, and be unavailable (for picking up/using).
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>soldierOne action ["DropBag", soldierTwo, backpack soldierOne];</sqf>
| <sqf>soldierOne action ["DropBag", soldierTwo, backpack soldierOne];</sqf>
Line 380: Line 380:
== DropMagazine ==
== DropMagazine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to drop a magazine either into another unit (both persons and vehicles), or onto the ground (creating a new WeaponHolder object). Magazines can be dropped into other units at any distance.
| style="width: 99%" | Causes a person to drop a magazine either into another unit (both persons and vehicles), or onto the ground (creating a new WeaponHolder object). Magazines can be dropped into other units at any distance.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["dropMagazine", ''targetUnit'', ''"magazineName"'']
| ''unit'' action ["dropMagazine", ''targetUnit'', ''"magazineName"'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to drop a magazine (the action animation will be performed), ''targetUnit'' is either another unit into which the magazine will be dropped, or the same unit that is dropping the magazine. ''"magazineName"'' is the classname (string) of the magazine to be dropped (see the [[ArmA:_Weapons|ArmA weapons list]] for magazine classnames).
| Where ''unit'' is the person to drop a magazine (the action animation will be performed), ''targetUnit'' is either another unit into which the magazine will be dropped, or the same unit that is dropping the magazine. ''"magazineName"'' is the classname (string) of the magazine to be dropped (see the [[ArmA:_Weapons|ArmA weapons list]] for magazine classnames).
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>soldierOne action ["dropMagazine", soldierOne, "30Rnd_545x39_AK"];</sqf>
| <sqf>soldierOne action ["dropMagazine", soldierOne, "30Rnd_545x39_AK"];</sqf>
|- style="vertical-align: top"
|-
|
|
| <sqf>soldierOne action ["dropMagazine", ammoCrateOne, "30Rnd_545x39_AK"];</sqf>
| <sqf>soldierOne action ["dropMagazine", ammoCrateOne, "30Rnd_545x39_AK"];</sqf>
Line 401: Line 401:
== DropWeapon ==
== DropWeapon ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to drop a weapon and all associated magazines either into specified vehicle or weaponholder. Weapons can be dropped at any distance.
| style="width: 99%" | Causes a person to drop a weapon and all associated magazines either into specified vehicle or weaponholder. Weapons can be dropped at any distance.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["dropWeapon", ''targetHolder'', ''"weaponName"'']
| ''unit'' action ["dropWeapon", ''targetHolder'', ''"weaponName"'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to drop a weapon (the action animation will be performed), ''targetHolder'' is either a vehicle or weaponholder. ''"weaponName"'' is the classname (string) of the CfgWeapons class.
| Where ''unit'' is the person to drop a weapon (the action animation will be performed), ''targetHolder'' is either a vehicle or weaponholder. ''"weaponName"'' is the classname (string) of the CfgWeapons class.
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>
| <sqf>
Line 419: Line 419:
<sqf>soldierOne action ["DropWeapon", unitBackpack soldierTwo, currentWeapon soldierOne];</sqf>
<sqf>soldierOne action ["DropWeapon", unitBackpack soldierTwo, currentWeapon soldierOne];</sqf>
<sqf>player action ["DropWeapon", tank, "arifle_MX_ACO_pointer_F"];</sqf>
<sqf>player action ["DropWeapon", tank, "arifle_MX_ACO_pointer_F"];</sqf>
|- style="vertical-align: top"
|-
|
|
|}
|}
Line 426: Line 426:
== Eject ==
== Eject ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to eject out of the vehicle they are currently inside. If the unit was the driver of the vehicle, the vehicle will retain it is steering control input and it is engine will remain on. This action has a global effect when used on a local unit in multiplayer. If the vehicle parameter used is an moving aircraft, the ejecting person will use a parachute (and likewise if it is not an moving aircraft, no parachute will be used).
| style="width: 99%" | Causes a person to eject out of the vehicle they are currently inside. If the unit was the driver of the vehicle, the vehicle will retain it is steering control input and it is engine will remain on. This action has a global effect when used on a local unit in multiplayer. If the vehicle parameter used is an moving aircraft, the ejecting person will use a parachute (and likewise if it is not an moving aircraft, no parachute will be used).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["eject", ''vehicle'']
| ''unit'' action ["eject", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to eject from their current vehicle, and ''vehicle'' is any vehicle (generally the vehicle ''unit'' is within).
| Where ''unit'' is the person to eject from their current vehicle, and ''vehicle'' is any vehicle (generally the vehicle ''unit'' is within).
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["Eject", vehicle soldierOne];</sqf>
| <sqf>soldierOne action ["Eject", vehicle soldierOne];</sqf>
Line 444: Line 444:
== EngineOn ==
== EngineOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Turns a vehicle's engine on. This command will not override an AI driver's desires.
| style="width: 99%" | Turns a vehicle's engine on. This command will not override an AI driver's desires.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["engineOn", ''targetVehicle'']
| ''unit'' action ["engineOn", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''targetVehicle'' is the vehicle to start it is engine.
| Where ''unit'' is any unit, and ''targetVehicle'' is the vehicle to start it is engine.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["engineOn", vehicle soldierOne];</sqf>
| <sqf>soldierOne action ["engineOn", vehicle soldierOne];</sqf>
Line 462: Line 462:
== EngineOff ==
== EngineOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Turns a vehicle's engine off. This command will not override an AI driver's desires.
| style="width: 99%" | Turns a vehicle's engine off. This command will not override an AI driver's desires.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["engineOff", ''targetVehicle'']
| ''unit'' action ["engineOff", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''targetVehicle'' is the vehicle to have it is engine turned off.
| Where ''unit'' is any unit, and ''targetVehicle'' is the vehicle to have it is engine turned off.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["engineOff", vehicle soldierOne];</sqf>
| <sqf>soldierOne action ["engineOff", vehicle soldierOne];</sqf>
Line 480: Line 480:
== FireInflame ==
== FireInflame ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Ignites a fireplace object (from any distance).
| style="width: 99%" | Ignites a fireplace object (from any distance).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["FireInflame", ''targetObject'']
| ''unit'' action ["FireInflame", ''targetObject'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit(the action animation will be performed), and ''targetObject'' is the fireplace to be ignited.
| Where ''unit'' is any unit(the action animation will be performed), and ''targetObject'' is the fireplace to be ignited.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["FireInflame", firePlaceOne];</sqf>
| <sqf>soldierOne action ["FireInflame", firePlaceOne];</sqf>
Line 498: Line 498:
== FirePutDown ==
== FirePutDown ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Extinguishes a fireplace object (from any distance).
| style="width: 99%" | Extinguishes a fireplace object (from any distance).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["FirePutDown", ''targetObject'']
| ''unit'' action ["FirePutDown", ''targetObject'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (the action animation will be performed), and ''targetObject'' is the fireplace to be extinguished.
| Where ''unit'' is any unit (the action animation will be performed), and ''targetObject'' is the fireplace to be extinguished.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["FirePutDown", firePlaceOne];</sqf>
| <sqf>soldierOne action ["FirePutDown", firePlaceOne];</sqf>
Line 516: Line 516:
== FlapsUp ==
== FlapsUp ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Adjusts an aircraft's flaps upwards one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
| style="width: 99%" | Adjusts an aircraft's flaps upwards one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["flapsUp", ''targetVehicle'']
| ''unit'' action ["flapsUp", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (the action animation will not be performed), and ''targetVehicle'' is the aircraft to have it is flaps adjusted.
| Where ''unit'' is any unit (the action animation will not be performed), and ''targetVehicle'' is the aircraft to have it is flaps adjusted.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>harrierOne action ["flapsUp", harrierOne];</sqf>
| <sqf>harrierOne action ["flapsUp", harrierOne];</sqf>
Line 534: Line 534:
== FlapsDown ==
== FlapsDown ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Adjusts an aircraft's flaps down one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
| style="width: 99%" | Adjusts an aircraft's flaps down one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["flapsDown", ''targetVehicle'']
| ''unit'' action ["flapsDown", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (the action animation will not be performed), and ''targetVehicle'' is the aircraft to have it is flaps adjusted.
| Where ''unit'' is any unit (the action animation will not be performed), and ''targetVehicle'' is the aircraft to have it is flaps adjusted.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>harrierOne action ["flapsDown", harrierOne];</sqf>
| <sqf>harrierOne action ["flapsDown", harrierOne];</sqf>
Line 552: Line 552:
== Gear ==
== Gear ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Opens inventory dialog for the player and plays the appropriate animation. The left part of the inventory dialog gets populated with the inventory of the target unit. Player has to be in range of inventory operations with the targetUnit (~ <5m).
| style="width: 99%" | Opens inventory dialog for the player and plays the appropriate animation. The left part of the inventory dialog gets populated with the inventory of the target unit. Player has to be in range of inventory operations with the targetUnit (~ <5m).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["Gear", ''targetUnit'']
| ''unit'' action ["Gear", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a player, and ''targetUnit'' is another player, vehicle or container.
| Where ''unit'' is a player, and ''targetUnit'' is another player, vehicle or container.
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>player action ["Gear","GroundWeaponHolder" createVehicle position player];</sqf>
| <sqf>player action ["Gear","GroundWeaponHolder" createVehicle position player];</sqf>
|- style="vertical-align: top"
|-
|
|
| |<sqf>player action ["Gear", objNull];</sqf>
| |<sqf>player action ["Gear", objNull];</sqf>
|- style="vertical-align: top"
|-
|
|
| |<sqf>player action ["Gear", soldier1];</sqf>
| |<sqf>player action ["Gear", soldier1];</sqf>
|- style="vertical-align: top"
|-
|
|
| |<sqf>player action ["Gear", cursorTarget];</sqf>
| |<sqf>player action ["Gear", cursorTarget];</sqf>
Line 579: Line 579:
== GetInCargo ==
== GetInCargo ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Instantly moves a person to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as cargo, in a specific cargo position if given as an optional parameter, otherwise in the first available cargo position. If the specific position is already occupied, the person will board in the first available cargo position. If the all cargo positions are already occupied by living persons, or no cargo position exists, the boarding will fail. This action works only with cargo positions that have no person turret, i.e. if player cannot shoot his rifle from them. If position is cargo but also person turret, it will be ignored. Use {{hl|[[fullCrew]] [_veh, "cargo", [[true]]]}} to determine which positions are compatible cargo. Alternatively, use [[moveInCargo]] command instead, which has no such limitation.
| style="width: 99%" | Instantly moves a person to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as cargo, in a specific cargo position if given as an optional parameter, otherwise in the first available cargo position. If the specific position is already occupied, the person will board in the first available cargo position. If the all cargo positions are already occupied by living persons, or no cargo position exists, the boarding will fail. This action works only with cargo positions that have no person turret, i.e. if player cannot shoot his rifle from them. If position is cargo but also person turret, it will be ignored. Use <sqf inline>fullCrew [_veh, "cargo", true]</sqf> to determine which positions are compatible cargo. Alternatively, use [[moveInCargo]] command instead, which has no such limitation.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["getInCargo", ''targetVehicle'']
| ''unit'' action ["getInCargo", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| ''unit'' action ["getInCargo", ''targetVehicle'', ''positionNumber'']
| ''unit'' action ["getInCargo", ''targetVehicle'', ''positionNumber'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded. ''positionNumber is a specific cargo position index number.
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded. ''positionNumber is a specific cargo position index number.
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>soldierOne action ["getInCargo", truckOne];</sqf>
| <sqf>soldierOne action ["getInCargo", truckOne];</sqf>
|- style="vertical-align: top"
|-
|
|
| <sqf>soldierOne action ["getInCargo", truckOne, 0];</sqf>
| <sqf>soldierOne action ["getInCargo", truckOne, 0];</sqf>
Line 603: Line 603:
== GetInCommander ==
== GetInCommander ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Instantly moves a person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, they then attempt to board the vehicle as the commander. The boarding will fail if the position is already occupied or does not exist.
| style="width: 99%" | Instantly moves a person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, they then attempt to board the vehicle as the commander. The boarding will fail if the position is already occupied or does not exist.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["getInCommander", ''targetVehicle'']
| ''unit'' action ["getInCommander", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["getInCommander", tankOne];</sqf>
| <sqf>soldierOne action ["getInCommander", tankOne];</sqf>
Line 621: Line 621:
== GetInDriver ==
== GetInDriver ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Instantly moves an person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the driver/pilot. The boarding will fail if the position is already occupied or does not exist.
| style="width: 99%" | Instantly moves an person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the driver/pilot. The boarding will fail if the position is already occupied or does not exist.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["getInDriver", ''targetVehicle'']
| ''unit'' action ["getInDriver", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["getInDriver", carOne];</sqf>
| <sqf>soldierOne action ["getInDriver", carOne];</sqf>
Line 639: Line 639:
== GetInGunner ==
== GetInGunner ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Instantly moves a person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the primary gunner. If the gunner position is already occupied by another living person or it does not exist, the boarding will fail. Also see [[#GetInTurret|getInTurret]].
| style="width: 99%" | Instantly moves a person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the primary gunner. If the gunner position is already occupied by another living person or it does not exist, the boarding will fail. Also see [[#GetInTurret|getInTurret]].
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["getInGunner", ''targetVehicle'']
| ''unit'' action ["getInGunner", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["getInGunner", mySpotlight];</sqf>
| <sqf>soldierOne action ["getInGunner", mySpotlight];</sqf>
Line 657: Line 657:
== GetInPilot ==
== GetInPilot ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | This action is identical to [[#GetInDriver|getInDriver]]. It instantly moves an person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the driver/pilot. The boarding will fail if the position is already occupied or does not exist.
| style="width: 99%" | This action is identical to [[#GetInDriver|getInDriver]]. It instantly moves an person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the driver/pilot. The boarding will fail if the position is already occupied or does not exist.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["getInPilot", ''targetVehicle'']
| ''unit'' action ["getInPilot", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>pilotOne action ["getInPilot", chopperOne];</sqf>
| <sqf>pilotOne action ["getInPilot", chopperOne];</sqf>
Line 675: Line 675:
== GetInTurret ==
== GetInTurret ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Instantly moves a person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the specified turret user. If the turret position is already occupied by another living person the boarding will fail. If the turret position does not exist, ArmA may crash. See also [[#GetInGunner|getInGunner]].
| style="width: 99%" | Instantly moves a person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the specified turret user. If the turret position is already occupied by another living person the boarding will fail. If the turret position does not exist, ArmA may crash. See also [[#GetInGunner|getInGunner]].
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["getInTurret", ''targetVehicle'', ''turretArray'']
| ''unit'' action ["getInTurret", ''targetVehicle'', ''turretArray'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded, and ''turretArray'' is an array defining the turret. For example, ''[1]'' would be a vehicle's second turret, and ''[0, 2, 1]'' is the second turret of the third turret of the first turret. A vehicle's turret order is defined in it is class CfgVehicles of the Config.
| Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded, and ''turretArray'' is an array defining the turret. For example, ''[1]'' would be a vehicle's second turret, and ''[0, 2, 1]'' is the second turret of the third turret of the first turret. A vehicle's turret order is defined in it is class CfgVehicles of the Config.
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>gunnerTwo action ["getInTurret", myUH60MG, [1]];</sqf>
| <sqf>gunnerTwo action ["getInTurret", myUH60MG, [1]];</sqf>
|- style="vertical-align: top"
|-
|
|
| <sqf>tankCommanderOne action ["getInTurret", myT72, [0,1]];</sqf>
| <sqf>tankCommanderOne action ["getInTurret", myT72, [0,1]];</sqf>
Line 696: Line 696:
== GetOut ==
== GetOut ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to disembark from a vehicle, without a parachute in the case of aircraft. See also [[#Eject|eject]].
| style="width: 99%" | Causes a person to disembark from a vehicle, without a parachute in the case of aircraft. See also [[#Eject|eject]].
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["getOut", ''targetVehicle'']
| ''unit'' action ["getOut", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the person to disembark, and ''targetVehicle'' is the vehicle to disembark from.
| Where ''unit'' is the person to disembark, and ''targetVehicle'' is the vehicle to disembark from.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["getOut", carOne];</sqf>
| <sqf>soldierOne action ["getOut", carOne];</sqf>
Line 714: Line 714:
== HandGunOn ==
== HandGunOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to ready their hand gun (if equiped). This action may not work if the unit does not have a primary rifle.
| style="width: 99%" | Causes a person to ready their hand gun (if equiped). This action may not work if the unit does not have a primary rifle.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["handGunOn", ''targetUnit'']
| ''unit'' action ["handGunOn", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (who will not play the action animation), and ''targetUnit'' is the unit who will ready their pistol.
| Where ''unit'' is any unit (who will not play the action animation), and ''targetUnit'' is the unit who will ready their pistol.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["handGunOn", soldierOne];</sqf>
| <sqf>soldierOne action ["handGunOn", soldierOne];</sqf>
Line 732: Line 732:
== HandGunOff ==
== HandGunOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to return a readied pistol to it is holster, then switch to the primary rifle. This action may not work if the unit does not have a primary rifle.
| style="width: 99%" | Causes a person to return a readied pistol to it is holster, then switch to the primary rifle. This action may not work if the unit does not have a primary rifle.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["handGunOff", ''targetUnit'']
| ''unit'' action ["handGunOff", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (who will not play the action animation), and ''targetUnit'' is the person to holster it is pistol.
| Where ''unit'' is any unit (who will not play the action animation), and ''targetUnit'' is the person to holster it is pistol.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["handGunOff", soldierOne];</sqf>
| <sqf>soldierOne action ["handGunOff", soldierOne];</sqf>
Line 750: Line 750:
== Heal ==
== Heal ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Instantly teleports a person unit to the target medic. The target medic then heals the unit. If the target unit is not a medic, the animations will still be played, but no healing occurs. If the medic is within a vehicle, no teleporting will occur and the wounded unit will only be healed if they are already within healing range (a few meters).
| style="width: 99%" | Instantly teleports a person unit to the target medic. The target medic then heals the unit. If the target unit is not a medic, the animations will still be played, but no healing occurs. If the medic is within a vehicle, no teleporting will occur and the wounded unit will only be healed if they are already within healing range (a few meters).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["heal", ''targetUnit'']
| ''unit'' action ["heal", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a wounded person, and ''targetUnit'' is the medic to do the healing.
| Where ''unit'' is a wounded person, and ''targetUnit'' is the medic to do the healing.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["heal", medicOne];</sqf>
| <sqf>soldierOne action ["heal", medicOne];</sqf>
Line 768: Line 768:
== HealSoldier ==
== HealSoldier ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Performs one soldier healing of another soldier. Needs to have MedKit or FAK (first aid kit) in the inventory, which gets used.
| style="width: 99%" | Performs one soldier healing of another soldier. Needs to have MedKit or FAK (first aid kit) in the inventory, which gets used.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["HealSoldier", ''targetUnit'']
| ''unit'' action ["HealSoldier", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the unit to perform treatment, and ''targetUnit'' is the unit to recieve treatment.
| Where ''unit'' is the unit to perform treatment, and ''targetUnit'' is the unit to recieve treatment.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["HealSoldier", soldier1];</sqf>
| <sqf>player action ["HealSoldier", soldier1];</sqf>
Line 786: Line 786:
== HealSoldierSelf ==
== HealSoldierSelf ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Performs one soldier healing of another soldier. In case the target is the same unit, the soldier performs treatment on himself. Needs to have FAK (first aid kit) in the inventory, which gets used.
| style="width: 99%" | Performs one soldier healing of another soldier. In case the target is the same unit, the soldier performs treatment on himself. Needs to have FAK (first aid kit) in the inventory, which gets used.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["HealSoldierSelf", ''targetUnit'']
| ''unit'' action ["HealSoldierSelf", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the unit to perform treatment, and ''targetUnit'' is the unit to recieve treatment.
| Where ''unit'' is the unit to perform treatment, and ''targetUnit'' is the unit to recieve treatment.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["HealSoldierSelf", soldier1];</sqf>
| <sqf>player action ["HealSoldierSelf", soldier1];</sqf>
Line 804: Line 804:
== HideBody ==
== HideBody ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to bend down and hide (bury) a body in the ground. The body is automatically deleted within a few seconds. The person performing the action does not require the ability to hide bodies, and may be any distance from the body.
| style="width: 99%" | Causes a person to bend down and hide (bury) a body in the ground. The body is automatically deleted within a few seconds. The person performing the action does not require the ability to hide bodies, and may be any distance from the body.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["hideBody", ''targetUnit'']
| ''unit'' action ["hideBody", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a person, and ''targetUnit'' is a dead person.
| Where ''unit'' is a person, and ''targetUnit'' is a dead person.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["hideBody", soldierTwo];</sqf>
| <sqf>soldierOne action ["hideBody", soldierTwo];</sqf>
Line 822: Line 822:
== InGameMenu ==
== InGameMenu ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Use and effects unknown.
| style="width: 99%" | Use and effects unknown.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["inGameMenu", ''<target>'']
| ''unit'' action ["inGameMenu", ''<target>'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 840: Line 840:
== LadderDown ==
== LadderDown ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to play an animation as if mounting the top of a ladder, then instantly teleport onto the specified ladder in the specified position. If the person is controlled by AI, they will automatically climb up or down the ladder. If the 2 parameter syntax is used, the person will become stuck in the ladder mounting animation state until the [[#ladderOff|ladderOff]] action is executed upon them. It may also crash ArmA (pre 1.09).
| style="width: 99%" | Causes a person to play an animation as if mounting the top of a ladder, then instantly teleport onto the specified ladder in the specified position. If the person is controlled by AI, they will automatically climb up or down the ladder. If the 2 parameter syntax is used, the person will become stuck in the ladder mounting animation state until the [[#ladderOff|ladderOff]] action is executed upon them. It may also crash ArmA (pre 1.09).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["ladderDown", ''targetObject'']
| ''unit'' action ["ladderDown", ''targetObject'']
|- style="vertical-align: top"
|-
|
|
| ''unit'' action ["ladderDown", ''targetObject'', ''ladderNumber'', ''positionNumber'']
| ''unit'' action ["ladderDown", ''targetObject'', ''ladderNumber'', ''positionNumber'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any person unit, ''targetObject'' is an object with a ladder, ''ladderNumber'' is a number defining the desired ladder, and ''positionNumber'' is a number defining the desired position.
| Where ''unit'' is any person unit, ''targetObject'' is an object with a ladder, ''ladderNumber'' is a number defining the desired ladder, and ''positionNumber'' is a number defining the desired position.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["ladderDown", (position soldierOne nearestObject 452221), 0, 1];</sqf>
| <sqf>soldierOne action ["ladderDown", (position soldierOne nearestObject 452221), 0, 1];</sqf>
Line 861: Line 861:
== LadderUp ==
== LadderUp ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to play an animation as if mounting the bottom of a ladder, then instantly teleport onto the specified ladder in the specified position. If the person is controlled by AI, they will automatically climb up or down the ladder. If the 2 parameter syntax is used, the person will become stuck in the ladder mounting animation state until the [[#ladderOff|ladderOff]] action is executed upon them. It may also crash ArmA (pre 1.09).
| style="width: 99%" | Causes a person to play an animation as if mounting the bottom of a ladder, then instantly teleport onto the specified ladder in the specified position. If the person is controlled by AI, they will automatically climb up or down the ladder. If the 2 parameter syntax is used, the person will become stuck in the ladder mounting animation state until the [[#ladderOff|ladderOff]] action is executed upon them. It may also crash ArmA (pre 1.09).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["ladderUp", ''targetObject''] '''!!!Warning!!! This syntax causes Arma 3 to freeze'''
| ''unit'' action ["ladderUp", ''targetObject''] '''!!!Warning!!! This syntax causes Arma 3 to freeze'''
|- style="vertical-align: top"
|-
|
|
| ''unit'' action ["ladderUp", ''targetObject'', ''ladderNumber'', ''positionNumber'']
| ''unit'' action ["ladderUp", ''targetObject'', ''ladderNumber'', ''positionNumber'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any person unit, ''targetObject'' is an object with a ladder, ''ladderNumber'' is a number defining the desired ladder, and ''positionNumber'' is a number defining the desired position (0 - bottom, 1 - top). All numbers in between get rounded towards 1 or 0.
| Where ''unit'' is any person unit, ''targetObject'' is an object with a ladder, ''ladderNumber'' is a number defining the desired ladder, and ''positionNumber'' is a number defining the desired position (0 - bottom, 1 - top). All numbers in between get rounded towards 1 or 0.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["ladderUp", (position soldierOne nearestObject 452221), 0, 0];</sqf>
| <sqf>soldierOne action ["ladderUp", (position soldierOne nearestObject 452221), 0, 0];</sqf>
Line 882: Line 882:
== LadderOff ==
== LadderOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to dismount from any ladder of the specified object they may be happen to be on. The alternative 3 parameter syntax expects a number, the use of which is not known.
| style="width: 99%" | Causes a person to dismount from any ladder of the specified object they may be happen to be on. The alternative 3 parameter syntax expects a number, the use of which is not known.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["ladderOff", ''targetObject'']
| ''unit'' action ["ladderOff", ''targetObject'']
|- style="vertical-align: top"
|-
|
|
| ''unit'' action ["ladderOff", ''targetObject'', ''unknownNumber'']
| ''unit'' action ["ladderOff", ''targetObject'', ''unknownNumber'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any person unit, ''targetObject'' is the object with a ladder that the person is currently upon, ''unknownNumber'' is a number.
| Where ''unit'' is any person unit, ''targetObject'' is the object with a ladder that the person is currently upon, ''unknownNumber'' is a number.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["ladderOff", (position soldierOne nearestObject 452221)];</sqf>
| <sqf>soldierOne action ["ladderOff", (position soldierOne nearestObject 452221)];</sqf>
Line 903: Line 903:
== LadderOnDown ==
== LadderOnDown ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
| '''Description''': This action appears to be identical to [[#LadderDown|LadderDown]].
| '''Description''': This action appears to be identical to [[#LadderDown|LadderDown]].
|}
|}
Line 911: Line 911:
== LadderOnUp ==
== LadderOnUp ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
| '''Description''': This action appears to be identical to [[#LadderUp|LadderUp]].
| '''Description''': This action appears to be identical to [[#LadderUp|LadderUp]].
|}
|}
Line 919: Line 919:
== Land ==
== Land ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Turns on autopilot landing for an aircraft, including AI controlled aircraft. The aircraft will land at the closest airfield.
| style="width: 99%" | Turns on autopilot landing for an aircraft, including AI controlled aircraft. The aircraft will land at the closest airfield.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["Land", ''targetVehicle'']'''
| ''unit'' action ["Land", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle that can perform an autopilot landing.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle that can perform an autopilot landing.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>planeOne action ["Land", planeOne];</sqf>
| <sqf>planeOne action ["Land", planeOne];</sqf>
Line 937: Line 937:
== LandGear ==
== LandGear ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Lowers the landing gear of an aircraft. In the case of AI-controlled aircraft, it has to be used in an each-frame loop to to override the AI behavior (otherwise they'll raise the landing gear when they take off).
| style="width: 99%" | Lowers the landing gear of an aircraft. In the case of AI-controlled aircraft, it has to be used in an each-frame loop to to override the AI behavior (otherwise they'll raise the landing gear when they take off).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["LandGear", ''targetVehicle'']'''
| ''unit'' action ["LandGear", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle that can perform an autopilot landing.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle that can perform an autopilot landing.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>planeOne action ["LandGear", planeOne];</sqf>
| <sqf>planeOne action ["LandGear", planeOne];</sqf>
Line 954: Line 954:
== LandGearUp ==
== LandGearUp ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Raises the landing gear of an aircraft. In the case of AI-controlled aircraft, it has to be used in an each-frame loop to override the AI behavior (otherwise they'll lower the landing gear when they're close to the ground).
| style="width: 99%" | Raises the landing gear of an aircraft. In the case of AI-controlled aircraft, it has to be used in an each-frame loop to override the AI behavior (otherwise they'll lower the landing gear when they're close to the ground).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["LandGearUp", ''targetVehicle'']'''
| ''unit'' action ["LandGearUp", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle that can perform an autopilot landing.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle that can perform an autopilot landing.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>planeOne action ["LandGearUp", planeOne];</sqf>
| <sqf>planeOne action ["LandGearUp", planeOne];</sqf>
Line 972: Line 972:
== LightOff ==
== LightOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Turns off the headlights of an empty vehicle. If the vehicle is AI-controlled (either as the lone driver, or as the commander/gunner) then the light status depends on the AI's [[behaviour]] mode ("combat" or "stealth" = lights off, any other mode = lights on).
| style="width: 99%" | Turns off the headlights of an empty vehicle. If the vehicle is AI-controlled (either as the lone driver, or as the commander/gunner) then the light status depends on the AI's [[behaviour]] mode ("combat" or "stealth" = lights off, any other mode = lights on).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["lightOff", ''targetVehicle'']'''
| ''unit'' action ["lightOff", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["lightOff", vehicle player];</sqf>
| <sqf>player action ["lightOff", vehicle player];</sqf>
Line 990: Line 990:
== LightOn ==
== LightOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Turns on the headlights of an empty vehicle. If vehicle is AI-controlled, see notes under the [[ArmA:_Actions#LightOff|LightOff]] action.
| style="width: 99%" | Turns on the headlights of an empty vehicle. If vehicle is AI-controlled, see notes under the {{Link|#LightOff}} action.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["lightOn", ''targetVehicle'']'''
| ''unit'' action ["lightOn", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["lightOn", vehicle player];</sqf>
| <sqf>player action ["lightOn", vehicle player];</sqf>
Line 1,008: Line 1,008:
== LoadMagazine ==
== LoadMagazine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Plays a reload weapon animation.
| style="width: 99%" | Plays a reload weapon animation.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["loadMagazine", target, magazineCreator, ''number1'', ''number2'', weaponName, muzzleName]
| ''unit'' action ["loadMagazine", target, magazineCreator, ''number1'', ''number2'', weaponName, muzzleName]
|- style="vertical-align: top"
|-
|
|
| Expects a 7 element array:
| Expects a 7 element array:
|- style="vertical-align: top"
|-
|
|
| target: [[Object]] - unit to perform the reload action.
| target: [[Object]] - unit to perform the reload action.
|- style="vertical-align: top"
|-
|
|
| magazineCreator: [[Object]] - unknown. Can be objNull.
| magazineCreator: [[Object]] - unknown. Can be objNull.
|- style="vertical-align: top"
|-
|
|
| ''number1'': [[Number]] - cr - see [[magazinesDetail]]. For characters it is mainly 0
| ''number1'': [[Number]] - cr - see [[magazinesDetail]]. For characters it is mainly 0
|- style="vertical-align: top"
|-
|
|
| ''number2'': [[Number]] - id - magazine ID - can be obtained via [[magazinesDetail]]. With 0, it only plays the reload animation. With values from 1 up, it actually reloads the magazine. If the number becomes too high (meaning of the upper limit is also unknown), the action will no longer be performed.
| ''number2'': [[Number]] - id - magazine ID - can be obtained via [[magazinesDetail]]. With 0, it only plays the reload animation. With values from 1 up, it actually reloads the magazine. If the number becomes too high (meaning of the upper limit is also unknown), the action will no longer be performed.
|- style="vertical-align: top"
|-
|
|
| weaponName: [[String]] - weapon to reload. Must not be selected, but may cause weapon not to reload to the full amount.
| weaponName: [[String]] - weapon to reload. Must not be selected, but may cause weapon not to reload to the full amount.
|- style="vertical-align: top"
|-
|
|
| muzzleName: [[String]] - weapon's muzzle to reload.
| muzzleName: [[String]] - weapon's muzzle to reload.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["loadmagazine", player, player, 0, 1 ,"vbs2_us_m16a2_iron_gla", "vbs2_us_m16a2_iron_gla"];</sqf>
| <sqf>player action ["loadmagazine", player, player, 0, 1 ,"vbs2_us_m16a2_iron_gla", "vbs2_us_m16a2_iron_gla"];</sqf>
Line 1,044: Line 1,044:
== LockVehicleControl ==
== LockVehicleControl ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Locks co-pilot controls, removes [[Arma_3:_Actions#TakeVehicleControl|Take Control]] action. [[enableCopilot]] must be set true to function.
| style="width: 99%" | Locks co-pilot controls, removes {{Link|#TakeVehicleControl}} action. [[enableCopilot]] must be set true to function.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["LockVehicleControl", ''vehicle'']
| ''unit'' action ["LockVehicleControl", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
| Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["LockVehicleControl", vehicle player];</sqf>
| <sqf>player action ["LockVehicleControl", vehicle player];</sqf>
Line 1,062: Line 1,062:
== ManualFire ==
== ManualFire ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Enables manual fire mode for a player unit that is driver or commander of a vehicle. This action toggled manual fire mode in old versions of ArmA. (See also [[isManualFire]])
| style="width: 99%" | Enables manual fire mode for a player unit that is driver or commander of a vehicle. This action toggled manual fire mode in old versions of ArmA. (See also [[isManualFire]])
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["manualFire", ''targetVehicle'']'''
| ''unit'' action ["manualFire", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is the vehicle in which manual fire mode is to be enabled.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is the vehicle in which manual fire mode is to be enabled.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["ManualFire", vehicle player];</sqf>
| <sqf>player action ["ManualFire", vehicle player];</sqf>
Line 1,080: Line 1,080:
== ManualFireCancel ==
== ManualFireCancel ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Disables manual fire mode for a player unit that is driver or commander of a vehicle. (See also [[isManualFire]])
| style="width: 99%" | Disables manual fire mode for a player unit that is driver or commander of a vehicle. (See also [[isManualFire]])
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["manualFireCancel", ''targetVehicle'']'''
| ''unit'' action ["manualFireCancel", ''targetVehicle'']'''
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is the vehicle in which manual fire mode is to be disabled.
| Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is the vehicle in which manual fire mode is to be disabled.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["manualFireCancel", vehicle player];</sqf>
| <sqf>player action ["manualFireCancel", vehicle player];</sqf>
Line 1,098: Line 1,098:
== MarkEntity ==
== MarkEntity ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Use and effects unknown. Same as [[Arma_3_Actions#MarkWeapon]] action.
| style="width: 99%" | Use and effects unknown. Same as {{Link|#MarkWeapon}} action.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["markEntity", <target>]
| ''unit'' action ["markEntity", <target>]
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 1,116: Line 1,116:
== MoveToCargo ==
== MoveToCargo ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Move a unit to the chosen cargo position within a vehicle. If another unit is already in that position, the units will swap positions. This works only with cargo positions that have no person turret, i.e. if player cannot shoot his rifle from them. If position is cargo but also person turret, it will be ignored. Use {{hl|[[fullCrew]] [_veh, "cargo", [[true]]]}} to determine which positions are compatible cargo.
| style="width: 99%" | Move a unit to the chosen cargo position within a vehicle. If another unit is already in that position, the units will swap positions.
|- style="vertical-align: top"
This works only with cargo positions that have no person turret, i.e. if player cannot shoot his rifle from them.
If position is cargo but also person turret, it will be ignored.
Use <sqf inline>fullCrew [_veh, "cargo", true]</sqf> to determine which positions are compatible cargo.
|-
! Syntax
! Syntax
| ''unit'' action ["moveToCargo", ''targetVehicle'', ''cargoPosition'']
| ''unit'' action ["moveToCargo", ''targetVehicle'', ''cargoPosition'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a unit within ''targetVehicle'', and ''cargoPosition'' is the number of the desired cargo position (0 being the first).
| Where ''unit'' is a unit within ''targetVehicle'', and ''cargoPosition'' is the number of the desired cargo position (0 being the first).
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["moveToCargo", vehicle player, 2];</sqf>
| <sqf>player action ["moveToCargo", vehicle player, 2];</sqf>
Line 1,134: Line 1,137:
== MoveToCommander ==
== MoveToCommander ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Move a unit to the commander's position within a vehicle. If another unit is already in that position, the units will swap positions.
| style="width: 99%" | Move a unit to the commander's position within a vehicle. If another unit is already in that position, the units will swap positions.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["moveToCommander", ''targetVehicle'']
| ''unit'' action ["moveToCommander", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a unit within ''targetVehicle''.
| Where ''unit'' is a unit within ''targetVehicle''.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["moveToCommander", vehicle player];</sqf>
| <sqf>player action ["moveToCommander", vehicle player];</sqf>
Line 1,152: Line 1,155:
== MoveToDriver ==
== MoveToDriver ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Move a unit to the driver's position within a vehicle. If another unit is already in that position, the units will generally swap positions, although in some scenarios this action may not work (although having the existing driver move always works).
| style="width: 99%" | Move a unit to the driver's position within a vehicle. If another unit is already in that position, the units will generally swap positions, although in some scenarios this action may not work (although having the existing driver move always works).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["moveToDriver", ''targetVehicle'']
| ''unit'' action ["moveToDriver", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a unit within ''targetVehicle''.
| Where ''unit'' is a unit within ''targetVehicle''.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["moveToDriver", vehicle player];</sqf>
| <sqf>player action ["moveToDriver", vehicle player];</sqf>
Line 1,170: Line 1,173:
== MoveToGunner ==
== MoveToGunner ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Move a unit to the primary gunner's position within a vehicle. If another unit is already in that position, the units will swap positions. See also [[#MoveToTurret|moveToTurret]].
| style="width: 99%" | Move a unit to the primary gunner's position within a vehicle. If another unit is already in that position, the units will swap positions. See also [[#MoveToTurret|moveToTurret]].
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["moveToGunner", ''targetVehicle'']
| ''unit'' action ["moveToGunner", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a unit within ''targetVehicle''.
| Where ''unit'' is a unit within ''targetVehicle''.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["moveToGunner", vehicle player];</sqf>
| <sqf>player action ["moveToGunner", vehicle player];</sqf>
Line 1,188: Line 1,191:
== MoveToPilot ==
== MoveToPilot ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
| '''Description''': Identical to [[#MoveToDriver|moveToDriver]].
| '''Description''': Identical to [[#MoveToDriver|moveToDriver]].
|}
|}
Line 1,196: Line 1,199:
== MoveToTurret ==
== MoveToTurret ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Move a unit to the chosen turret position within a vehicle. If another unit is already in that position, the units will swap positions.
| style="width: 99%" | Move a unit to the chosen turret position within a vehicle. If another unit is already in that position, the units will swap positions.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["moveToTurret", ''targetVehicle'', ''turretArray'']
| ''unit'' action ["moveToTurret", ''targetVehicle'', ''turretArray'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a unit within ''targetVehicle'', and ''turret Array'' is an array referring to the desired turret (for example, [0,1,2] refers to the third turret of the second turret of the first turret of the vehicle).
| Where ''unit'' is a unit within ''targetVehicle'', and ''turret Array'' is an array referring to the desired turret (for example, [0,1,2] refers to the third turret of the second turret of the first turret of the vehicle).
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>player action ["moveToTurret", vehicle player, [0]];</sqf>
| <sqf>player action ["moveToTurret", vehicle player, [0]];</sqf>
|- style="vertical-align: top"
|-
|
|
| <sqf>player action ["moveToTurret", vehicle player, [0,1]];</sqf>
| <sqf>player action ["moveToTurret", vehicle player, [0,1]];</sqf>
Line 1,217: Line 1,220:
== None ==
== None ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Use and effects unknown.
| style="width: 99%" | Use and effects unknown.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["none", ''<target>'']
| ''unit'' action ["none", ''<target>'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 1,235: Line 1,238:
== NVGoggles ==
== NVGoggles ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a unit to put on it is night vision goggles. AI controlled units will automatically put on and take off goggles depending on daylight.
| style="width: 99%" | Causes a unit to put on it is night vision goggles. AI controlled units will automatically put on and take off goggles depending on daylight.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["nvGoggles", ''<anything>'']
| ''unit'' action ["nvGoggles", ''<anything>'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the unit to put on NVGoggles, and ''<anything>'' can be anything (it seems to not be used at all, but the action parameter array must contain at least two elements).
| Where ''unit'' is the unit to put on NVGoggles, and ''<anything>'' can be anything (it seems to not be used at all, but the action parameter array must contain at least two elements).
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["nvGoggles", player];</sqf>
| <sqf>player action ["nvGoggles", player];</sqf>
Line 1,253: Line 1,256:
== NVGogglesOff ==
== NVGogglesOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a unit to take off it is night vision goggles. AI controlled units will automatically put on and take off goggles depending on daylight.
| style="width: 99%" | Causes a unit to take off it is night vision goggles. AI controlled units will automatically put on and take off goggles depending on daylight.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["nvGogglesOff", ''<anything>'']
| ''unit'' action ["nvGogglesOff", ''<anything>'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the unit to put on goggles, and ''<anything>'' can be anything (it seems not to be used at all, but the action parameter array must contain at least two elements).
| Where ''unit'' is the unit to put on goggles, and ''<anything>'' can be anything (it seems not to be used at all, but the action parameter array must contain at least two elements).
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["nvGogglesOff", player];</sqf>
| <sqf>player action ["nvGogglesOff", player];</sqf>
Line 1,271: Line 1,274:
== OpenParachute ==
== OpenParachute ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Opens unit's parachute. Unit must have parachute backpack.
| style="width: 99%" | Opens unit's parachute. Unit must have parachute backpack.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["OpenParachute", ''unit'']
| ''unit'' action ["OpenParachute", ''unit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the unit with parachute backpack.
| Where ''unit'' is the unit with parachute backpack.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["OpenParachute", player];</sqf>
| <sqf>player action ["OpenParachute", player];</sqf>
Line 1,289: Line 1,292:
== PutBag ==
== PutBag ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes ''sourceUnit'' to bend over and put target backpack on the ground. If the ''targetUnit'' param is omitted or it is the same as ''sourceUnit'', the ''sourceUnit'' will drop own backpack. If ''targetUnit'' is another unit, ''sourceUnit'' will bend over but ''targetUnit'' will drop its backpack at its feet.
| style="width: 99%" | Causes ''sourceUnit'' to bend over and put target backpack on the ground. If the ''targetUnit'' param is omitted or it is the same as ''sourceUnit'', the ''sourceUnit'' will drop own backpack. If ''targetUnit'' is another unit, ''sourceUnit'' will bend over but ''targetUnit'' will drop its backpack at its feet.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''sourceUnit'' action ["PutBag", ''targetUnit'']
| ''sourceUnit'' action ["PutBag", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| ''targetUnit'' is optional
| ''targetUnit'' is optional
|- style="vertical-align: top"
|-
! Note
! Note
| To pick the backpack from the ground use "AddBag" action.
| To pick the backpack from the ground use "AddBag" action.
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>
| <sqf>
Line 1,314: Line 1,317:
== Rearm ==
== Rearm ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes an occupied vehicle or person to rearm from any object with some ammoCargo (generally an ammo truck) in the case of vehicles, or some magazines in it is cargo in the case of a rearming person. The rearming vehicle/person can be any distance from the rearming object. Rearming vehicles takes some time and will be interrupted if the vehicle starts to move. A rearming person will bend down as if picking up something.
| style="width: 99%" | Causes an occupied vehicle or person to rearm from any object with some ammoCargo (generally an ammo truck) in the case of vehicles, or some magazines in it is cargo in the case of a rearming person. The rearming vehicle/person can be any distance from the rearming object. Rearming vehicles takes some time and will be interrupted if the vehicle starts to move. A rearming person will bend down as if picking up something.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["rearm", ''reamingObject'']
| ''unit'' action ["rearm", ''reamingObject'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is the occupied vehicle or person to be rearmed, and ''rearmingObject'' is the object from which to rearm.
| Where ''unit'' is the occupied vehicle or person to be rearmed, and ''rearmingObject'' is the object from which to rearm.
|- style="vertical-align: top"
|-
! Examples
! Examples
| <sqf>tankOne action ["rearm", ammoTruckOne];</sqf>
| <sqf>tankOne action ["rearm", ammoTruckOne];</sqf>
|- style="vertical-align: top"
|-
|
|
| <sqf>soldierOne action ["rearm", ammoTruckOne];</sqf>
| <sqf>soldierOne action ["rearm", ammoTruckOne];</sqf>
Line 1,335: Line 1,338:
== Refuel ==
== Refuel ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes an occupied vehicle to refuel from any object with some fuelCargo (generally an refueling truck). The refueling object can be any distance from the vehicle. Refueling takes some time and will be interrupted if the vehicle starts to move.
| style="width: 99%" | Causes an occupied vehicle to refuel from any object with some fuelCargo (generally an refueling truck). The refueling object can be any distance from the vehicle. Refueling takes some time and will be interrupted if the vehicle starts to move.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''vehicle'' action ["refuel", ''refuelingObject'']
| ''vehicle'' action ["refuel", ''refuelingObject'']
|- style="vertical-align: top"
|-
|
|
| Where ''vehicle'' is the occupied vehicle to be refueled, and ''refuelingObject'' is the object from which to refuel.
| Where ''vehicle'' is the occupied vehicle to be refueled, and ''refuelingObject'' is the object from which to refuel.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>tankOne action ["refuel", refuelTruckOne];</sqf>
| <sqf>tankOne action ["refuel", refuelTruckOne];</sqf>
Line 1,353: Line 1,356:
== Repair ==
== Repair ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes an occupied vehicle to repair from any object with some repairCargo (generally an repair truck). The repair object can be any distance from the vehicle. Repairing takes some time and will be interrupted if the vehicle starts to move.
| style="width: 99%" | Causes an occupied vehicle to repair from any object with some repairCargo (generally an repair truck). The repair object can be any distance from the vehicle. Repairing takes some time and will be interrupted if the vehicle starts to move.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''vehicle'' action ["repair", ''repairingObject'']
| ''vehicle'' action ["repair", ''repairingObject'']
|- style="vertical-align: top"
|-
|
|
| Where ''vehicle'' is the occupied vehicle to be repaired, and ''repairingObject'' is the object from which to repair.
| Where ''vehicle'' is the occupied vehicle to be repaired, and ''repairingObject'' is the object from which to repair.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>tankOne action ["repair", repairTruckOne];</sqf>
| <sqf>tankOne action ["repair", repairTruckOne];</sqf>
Line 1,371: Line 1,374:
== ReturnFlag ==
== ReturnFlag ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to return a flag from a nearby dead person back to it is flagpole. As of ArmA v1.12 this action is bugged and can not be used upon flags attached to destroyed vehicles.
| style="width: 99%" | Causes a person to return a flag from a nearby dead person back to it is flagpole. As of ArmA v1.12 this action is bugged and can not be used upon flags attached to destroyed vehicles.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["returnFlag", ''targetObject'']
| ''unit'' action ["returnFlag", ''targetObject'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any person, and ''targetObject'' is the dead person with a flag to be returned.
| Where ''unit'' is any person, and ''targetObject'' is the dead person with a flag to be returned.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["returnFlag", westFlag];</sqf>
| <sqf>soldierOne action ["returnFlag", westFlag];</sqf>
Line 1,389: Line 1,392:
== RepairVehicle ==
== RepairVehicle ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes an Engineer unit to repair an object using their Engineer Repair ability (from v1.54). The Engineer can be any distance from the vehicle. Repairing takes some time. If ''unit'' is not the Engineer class no repairs are made but the animation will still play.
| style="width: 99%" | Causes an Engineer unit to repair an object using their Engineer Repair ability (from v1.54). The Engineer can be any distance from the vehicle. Repairing takes some time. If ''unit'' is not the Engineer class no repairs are made but the animation will still play.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["repairVehicle", ''vehicle'']
| ''unit'' action ["repairVehicle", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is an Engineer unit, and ''vehicle'' is the object to repair.
| Where ''unit'' is an Engineer unit, and ''vehicle'' is the object to repair.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>engineerOne action ["repairVehicle", truckOne];</sqf>
| <sqf>engineerOne action ["repairVehicle", truckOne];</sqf>
Line 1,407: Line 1,410:
== Salute ==
== Salute ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to salute. AI controlled units will only make a momentary salute, unless the AI is in safe or careless behaviour mode.
| style="width: 99%" | Causes a person to salute. AI controlled units will only make a momentary salute, unless the AI is in safe or careless behaviour mode.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["salute", ''targetUnit'']
| ''unit'' action ["salute", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no animation is performed), and ''targetUnit'' is the person to make the salute.
| Where ''unit'' is any unit (no animation is performed), and ''targetUnit'' is the person to make the salute.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["salute", soldierOne];</sqf>
| <sqf>soldierOne action ["salute", soldierOne];</sqf>
Line 1,425: Line 1,428:
== ScudCancel ==
== ScudCancel ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
| style="width: 99%" | There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["scudCancel", ''targetVehicle'']
| ''unit'' action ["scudCancel", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Syntax unknown.
| Syntax unknown.
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 1,443: Line 1,446:
== ScudLaunch ==
== ScudLaunch ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
| style="width: 99%" | There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["scudLaunch", ''targetVehicle'']
| ''unit'' action ["scudLaunch", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Syntax unknown.
| Syntax unknown.
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 1,461: Line 1,464:
== ScudStart ==
== ScudStart ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
| style="width: 99%" | There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["scudStart", ''targetVehicle'']
| ''unit'' action ["scudStart", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Syntax unknown.
| Syntax unknown.
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 1,479: Line 1,482:
== SearchlightOff ==
== SearchlightOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Turns off the searchlight in the WY-55 Hellcat. Only works on a unit sitting in the copilot seat, and only works with the Hellcat, no other vehicles have searchlights.
| style="width: 99%" | Turns off the vehicle's searchlight.
|- style="vertical-align: top"
{{Feature|informative|Out of all the vanilla vehicles, only the [[Arma 3: CfgVehicles GUER#I_Heli_light_03_F|WY-55 Hellcat]] has a searchlight and the action should be used on the copilot seat. See {{Link|Arma 3: Lights#Search Light}}.}}
|-
! Syntax
! Syntax
| ''unit'' action ["SearchlightOff", ''vehicle'']
| ''unit'' action ["SearchlightOff", ''vehicle'']
|- style="vertical-align: top"
|-
! Example
! Example
| hellcatCopilot action ["SearchlightOff", vehicle hellcatCopilot]
| hellcatCopilot action ["SearchlightOff", vehicle hellcatCopilot]
Line 1,494: Line 1,498:
== SearchlightOn ==
== SearchlightOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Turns on the searchlight in the WY-55 Hellcat. Only works on a unit sitting in the copilot seat, and only works with the Hellcat, no other vehicles have searchlights.
| style="width: 99%" | Turns on the searchlight.
|- style="vertical-align: top"
{{Feature|informative|Out of all the vanilla vehicles, only the [[Arma 3: CfgVehicles GUER#I_Heli_light_03_F|WY-55 Hellcat]] has a searchlight and the action should be used on the copilot seat. See {{Link|Arma 3: Lights#Search Light}}.}}
|-
! Syntax
! Syntax
| ''unit'' action ["SearchlightOn", ''vehicle'']
| ''unit'' action ["SearchlightOn", ''vehicle'']
|- style="vertical-align: top"
|-
! Example
! Example
| hellcatCopilot action ["SearchlightOn", vehicle hellcatCopilot]
| hellcatCopilot action ["SearchlightOn", vehicle hellcatCopilot]
Line 1,509: Line 1,514:
== SetTimer ==
== SetTimer ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Soldier 'unitOne' plays the action animation. UnitTwo activates and adds 40 seconds to the timer for a satchel charge. Neither unit needs to be near the satchel.
| style="width: 99%" | Soldier 'unitOne' plays the action animation. UnitTwo activates and adds 40 seconds to the timer for a satchel charge. Neither unit needs to be near the satchel.
Charge has to be placed first using ''unitname [[Fire]] ["pipebombmuzzle", "pipebombmuzzle", "pipebomb"]'' or [[createMine]] command.
Charge has to be placed first using ''unitname [[Fire]] ["pipebombmuzzle", "pipebombmuzzle", "pipebomb"]'' or [[createMine]] command.


|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unitOne'' action ["SetTimer", ''unitTwo'', ''bombName'']
| ''unitOne'' action ["SetTimer", ''unitTwo'', ''bombName'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 1,529: Line 1,534:
== SitDown ==
== SitDown ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Causes a person to sit down on the ground (or get up, if already sitting). AI controlled units will only stay seated if they are in safe or careless behaviour mode.
| style="width: 99%" | Causes a person to sit down on the ground (or get up, if already sitting). AI controlled units will only stay seated if they are in safe or careless behaviour mode.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["sitDown", ''targetUnit'']
| ''unit'' action ["sitDown", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (no animation is performed), and ''targetUnit'' is the person who is to sit down.
| Where ''unit'' is any unit (no animation is performed), and ''targetUnit'' is the person who is to sit down.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["sitDown", soldierOne];</sqf>
| <sqf>soldierOne action ["sitDown", soldierOne];</sqf>
Line 1,547: Line 1,552:
== StrokeFist ==
== StrokeFist ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Does nothing. There is no punch animation in ArmA, however this action (presumably) remains in the engine from the days of Operation Flashpoint.
| style="width: 99%" | Does nothing. There is no punch animation in ArmA, however this action (presumably) remains in the engine from the days of Operation Flashpoint.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["strokeFist", ''targetVehicle'']
| ''unit'' action ["strokeFist", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Syntax unknown.
| Syntax unknown.
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 1,565: Line 1,570:
== StrokeGun ==
== StrokeGun ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Does nothing (other than making a person twitch a little). There is no suitable animation for this action in ArmA, however this action (presumably) remains in the engine from the days of Operation Flashpoint.
| style="width: 99%" | Does nothing (other than making a person twitch a little). There is no suitable animation for this action in ArmA, however this action (presumably) remains in the engine from the days of Operation Flashpoint.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["strokeGun", ''targetVehicle'']
| ''unit'' action ["strokeGun", ''targetVehicle'']
|- style="vertical-align: top"
|-
|
|
| Syntax unknown.
| Syntax unknown.
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 1,583: Line 1,588:
== Surrender ==
== Surrender ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Makes unit to put weapon on shoulder and put hands behind the head temporarily. For the lasting effect all weapons from the unit should be removed first.
| style="width: 99%" | Makes unit to put weapon on shoulder and put hands behind the head temporarily. For the lasting effect all weapons from the unit should be removed first.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["Surrender", ''targetUnit'']
| ''unit'' action ["Surrender", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''targetUnit'' is the unit to surrender.
| Where ''unit'' is any unit, and ''targetUnit'' is the unit to surrender.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>soldierOne action ["Surrender", soldierTwo];</sqf>
| <sqf>soldierOne action ["Surrender", soldierTwo];</sqf>
Line 1,601: Line 1,606:
== SuspendVehicleControl ==
== SuspendVehicleControl ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Release vehicle controls from co-pilot. Control immediately returns to pilot.
| style="width: 99%" | Release vehicle controls from co-pilot. Control immediately returns to pilot.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["SuspendVehicleControl", ''vehicle'']
| ''unit'' action ["SuspendVehicleControl", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
| Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["SuspendVehicleControl", vehicle player];</sqf>
| <sqf>player action ["SuspendVehicleControl", vehicle player];</sqf>
Line 1,619: Line 1,624:
== SwitchMagazine ==
== SwitchMagazine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Target unit switches to the given firing mode index. This allows selection of any firing mode for any weapon carried by a soldier, or mounted on a weapon. First are the firing modes for the primary weapon (index 0 upwards), then secondary weapon, then optics, then pistol, then thrown and placed weapons. Changing to NVGoggles just plays an animation, not actually setting NV mode. Unfortunately, the list of firing modes seems to only be created when a soldier is initiated; modes are removed from the list when a weapon is dropped and not re-added when a weapon is picked up. Thus, only use this during the initiation phase of the soldier. On vehicles, where the weapons are not likely to be changed, this action might be useful after the vehicle has been initiated.
| style="width: 99%" | Target unit switches to the given firing mode index. This allows selection of any firing mode for any weapon carried by a soldier, or mounted on a weapon. First are the firing modes for the primary weapon (index 0 upwards), then secondary weapon, then optics, then pistol, then thrown and placed weapons. Changing to NVGoggles just plays an animation, not actually setting NV mode. Unfortunately, the list of firing modes seems to only be created when a soldier is initiated; modes are removed from the list when a weapon is dropped and not re-added when a weapon is picked up. Thus, only use this during the initiation phase of the soldier. On vehicles, where the weapons are not likely to be changed, this action might be useful after the vehicle has been initiated.
|- style="vertical-align: top"
|-
|
|
| If the mode index is higher than available indices, it assumes index 0. If you just want to change the muzzle used, rather than the firing mode, the standard command [[selectWeapon]] is generally more useful.
| If the mode index is higher than available indices, it assumes index 0. If you just want to change the muzzle used, rather than the firing mode, the standard command [[selectWeapon]] is generally more useful.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["SwitchMagazine", ''targetVehicle'', ''targetUnit'', ''mode index'']
| ''unit'' action ["SwitchMagazine", ''targetVehicle'', ''targetUnit'', ''mode index'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>
| <sqf>
Line 1,643: Line 1,648:
== SwitchWeapon ==
== SwitchWeapon ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | UnitOne plays the action animation. Target unit switches to the given muzzle/mode index. Target unit can also be a vehicle. The weapons array is a list of all weapon modes specific to each weapon, muzzle and firing mode combination.
| style="width: 99%" | UnitOne plays the action animation. Target unit switches to the given muzzle/mode index. Target unit can also be a vehicle. The weapons array is a list of all weapon modes specific to each weapon, muzzle and firing mode combination.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["SwitchWeapon", ''targetUnit'', ''targetUnit'', ''muzzle index'']
| ''unit'' action ["SwitchWeapon", ''targetUnit'', ''targetUnit'', ''muzzle index'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>
| <sqf>
Line 1,660: Line 1,665:
player action ["SwitchWeapon", vehicle player, player, 3]; // switching vehicle weapon
player action ["SwitchWeapon", vehicle player, player, 3]; // switching vehicle weapon
</sqf>
</sqf>
|- style="vertical-align: top"
|-
|
|
| <sqf>player action ["SwitchWeapon", player, player, weaponIndex];</sqf>
| <sqf>player action ["SwitchWeapon", player, player, weaponIndex];</sqf>
Line 1,694: Line 1,699:
  28: ["Put","DirectionalMineRangeMuzzle","DirectionalMineRangeMuzzle","",0]
  28: ["Put","DirectionalMineRangeMuzzle","DirectionalMineRangeMuzzle","",0]
  29: ["Put","ClassicMineWireMuzzle","ClassicMineWireMuzzle","",0]
  29: ["Put","ClassicMineWireMuzzle","ClassicMineWireMuzzle","",0]
As of '''2.10''', [[weaponsInfo]] is better suited for finding the desired weapon index
|}
|}


Line 1,699: Line 1,707:
== SwitchToUAVDriver ==
== SwitchToUAVDriver ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Moves player control into driver position of connected UAV. Does what "Take UAV controls" UI action does.
| style="width: 99%" | Moves player control into driver position of connected UAV. Does what "Take UAV controls" UI action does.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["SwitchToUAVDriver", ''uav'']
| ''unit'' action ["SwitchToUAVDriver", ''uav'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a player and ''uav'' is the connected UAV.
| Where ''unit'' is a player and ''uav'' is the connected UAV.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["SwitchToUAVDriver", getConnectedUAV player];</sqf>
| <sqf>player action ["SwitchToUAVDriver", getConnectedUAV player];</sqf>
Line 1,717: Line 1,725:
== SwitchToUAVGunner ==
== SwitchToUAVGunner ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Moves player control into gunner position of connected UAV. Does what "Take UAV turret controls" UI action does.
| style="width: 99%" | Moves player control into gunner position of connected UAV. Does what "Take UAV turret controls" UI action does.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["SwitchToUAVGunner", ''uav'']
| ''unit'' action ["SwitchToUAVGunner", ''uav'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a player and ''uav'' is the connected UAV.
| Where ''unit'' is a player and ''uav'' is the connected UAV.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["SwitchToUAVGunner", getConnectedUAV player];</sqf>
| <sqf>player action ["SwitchToUAVGunner", getConnectedUAV player];</sqf>
Line 1,735: Line 1,743:
== TakeFlag ==
== TakeFlag ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Soldier 'unitname' takes control of 'flag1'. He must be close to the flagpole and it must belong to an enemy side.
| style="width: 99%" | Soldier 'unitname' takes control of 'flag1'. He must be close to the flagpole and it must belong to an enemy side.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["TakeFlag", ''flag1'']
| ''unit'' action ["TakeFlag", ''flag1'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["TakeFlag", FlagOne];</sqf>
| <sqf>player action ["TakeFlag", FlagOne];</sqf>
Line 1,752: Line 1,760:


== TakeMagazine ==
== TakeMagazine ==
:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Soldier 'unit' takes one magazine of specified type from the ground (Weaponholder) or from named vehicle (ammo box, car, etc.) Transfer happens immediately and via teleportation. Unit plays pickup animation at its current position, no matter where magazine is. Since Arma 3 v2.06.147667 optional param 'forcePutInBackpack' is added allowing to store picked up magazine in backpack. By default the magazine will go to any unit container with space, starting with uniform.
| style="width: 99%" | Soldier 'unit' takes one magazine of specified type from the ground (Weaponholder) or from named vehicle (ammo box, car, etc.) Transfer happens immediately and via teleportation. Unit plays pickup animation at its current position, no matter where magazine is. Since Arma 3 v2.06.147667 optional param 'forcePutInBackpack' is added allowing to store picked up magazine in backpack. By default the magazine will go to any unit container with space, starting with uniform.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["TakeMagazine", ''weaponholder'', ''magazineName'', (''forcePutInBackpack'')]
| ''unit'' action ["TakeMagazine", ''weaponholder'', ''magazineName'', (''forcePutInBackpack'')]
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''weaponholder'' is storage container.
| Where ''unit'' is any unit, and ''weaponholder'' is storage container.
|- style="vertical-align: top"
|-
! Example1
! Example1
| <sqf>player action ["TakeMagazine", ammoBox, "RPGLauncher"];</sqf>
| <sqf>player action ["TakeMagazine", ammoBox, "RPGLauncher"];</sqf>
|- style="vertical-align: top"
|-
! Example2
! Example2
| Drop Magazine, then make your buddy Bob come and take magazine and put it in backpack:
| Drop Magazine, then make your buddy Bob come and take magazine and put it in backpack:
Line 1,783: Line 1,791:


== TakeWeapon ==
== TakeWeapon ==
:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Soldier 'unitname' takes weapon of specified type ([[:Category: Weapons|see list]]) from the ground (Weaponholder) or from named vehicle (ammo box, car, etc.) Transfer happens immediately and via teleportation. Unit1 plays pickup animation at its current position, no matter where weapon is.
| style="width: 99%" | Soldier 'unitname' takes weapon of specified type ([[:Category: Weapons|see list]]) from the ground (Weaponholder) or from named vehicle (ammo box, car, etc.) Transfer happens immediately and via teleportation. Unit1 plays pickup animation at its current position, no matter where weapon is.
|- style="vertical-align: top"
|-
|
|
| ''unit'' action ["TakeWeapon", ''vehicle'', ''weaponName'']
| ''unit'' action ["TakeWeapon", ''vehicle'', ''weaponName'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''vehicle'' is any unit or vehicle.
| Where ''unit'' is any unit, and ''vehicle'' is any unit or vehicle.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["TakeWeapon", SoldierTwo, currentWeapon player];</sqf>
| <sqf>player action ["TakeWeapon", SoldierTwo, currentWeapon player];</sqf>
Line 1,800: Line 1,808:
== TakeMine ==
== TakeMine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Unit will perform pick up action animation. The closest mine that is within two meters of the target unit will be placed into the target unit's inventory. The mine has to be active for this action to succeed. If there is not enough room in the target inventory, the mine will still be picked up but will not appear in inventory. See [[createMine]] for how to place explosive by script.
| style="width: 99%" | Unit will perform pick up action animation. The closest mine that is within two meters of the target unit will be placed into the target unit's inventory. The mine has to be active for this action to succeed. If there is not enough room in the target inventory, the mine will still be picked up but will not appear in inventory. See [[createMine]] for how to place explosive by script.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["TakeMine", ''targetUnit'']
| ''unit'' action ["TakeMine", ''targetUnit'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["TakeMine", player];</sqf>
| <sqf>player action ["TakeMine", player];</sqf>
Line 1,818: Line 1,826:
== TakeVehicleControl ==
== TakeVehicleControl ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | In case of a helicopter, copilot will take flying controls, even if [[enableCopilot]] is disabled and [[isCopilotEnabled]] is [[false]].
| style="width: 99%" | In case of a helicopter, copilot will take flying controls, even if [[enableCopilot]] is disabled and [[isCopilotEnabled]] is [[false]].
| Use [[Arma_3:_Actions#SuspendVehicleControl|SuspendVehicleControl]] action to release control.
| Use {{Link|#SuspendVehicleControl}} action to release control.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["TakeVehicleControl", ''vehicle'']
| ''unit'' action ["TakeVehicleControl", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
| Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["TakeVehicleControl", vehicle player];</sqf>
| <sqf>player action ["TakeVehicleControl", vehicle player];</sqf>
Line 1,837: Line 1,845:
== Talk ==
== Talk ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Use and effects unknown.
| style="width: 99%" | Use and effects unknown.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["Talk", ''target'']
| ''unit'' action ["Talk", ''target'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 1,855: Line 1,863:
== TeamSwitch ==
== TeamSwitch ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Opens the normal team-switch dialog. <current unit> will be greyed out in the list and thus unselectable.
| style="width: 99%" | Opens the normal team-switch dialog. <current unit> will be greyed out in the list and thus unselectable.
The effect of the second array element is unknown, but it must be a unit.
The effect of the second array element is unknown, but it must be a unit.
Works in single-player game only (in MP games, will just momentarily show the mouse cursor without the team-switch window being shown).
Works in single-player game only (in MP games, will just momentarily show the mouse cursor without the team-switch window being shown).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''currentUnit'' action ["TeamSwitch", ''unit'']
| ''currentUnit'' action ["TeamSwitch", ''unit'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["TeamSwitch", player];</sqf>
| <sqf>player action ["TeamSwitch", player];</sqf>
Line 1,875: Line 1,883:
== TouchOff ==
== TouchOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Soldier 'unitOne' plays the action animation. UnitTwo's satchels are "touched off".
| style="width: 99%" | Soldier 'unitOne' plays the action animation. UnitTwo's satchels are "touched off".
UnitTwo must be within range (300m) of his satchels to touch them off. See [[createMine]] for how to place explosives with script.
UnitTwo must be within range (300m) of his satchels to touch them off. See [[createMine]] for how to place explosives with script.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unitOne'' action ["TouchOff", ''unitTwo'']
| ''unitOne'' action ["TouchOff", ''unitTwo'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["TouchOff", player];</sqf>
| <sqf>player action ["TouchOff", player];</sqf>
Line 1,893: Line 1,901:


== TurnIn / TurnOut ==
== TurnIn / TurnOut ==
:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Crew of 'vehiclename' turns in/out (gets in and out of hatches).
| style="width: 99%" | Crew of 'vehiclename' turns in/out (gets in and out of hatches).
UnitName must be a player in effective commander of vehicleName. AI will automatically turn in/out based on their current behaviour mode.
UnitName must be a player in effective commander of vehicleName. AI will automatically turn in/out based on their current behaviour mode.
Only to be used on positions that have the turnIn/turnOut capability (otherwise it breaks the cargo anim).
Only to be used on positions that have the turnIn/turnOut capability (otherwise it breaks the cargo anim).
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["TurnIn", ''vehicle'']
| ''unit'' action ["TurnIn", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
| ''unit'' action ["TurnOut", ''vehicle'']
| ''unit'' action ["TurnOut", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>TankOne action ["TurnIn", TankOne];
| <sqf>TankOne action ["TurnIn", TankOne];
Line 1,917: Line 1,925:
== UAVTerminalHackConnection ==
== UAVTerminalHackConnection ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Hacks into given UAV. Does what "Hack UAV" UI action does.
| style="width: 99%" | Hacks into given UAV. Does what "Hack UAV" UI action does.


'''NOTE''': Player has to be in normal UI action proximity to the UAV for this action to work.
'''NOTE''': Player has to be in normal UI action proximity to the UAV for this action to work.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["UAVTerminalHackConnection", ''uav'']
| ''unit'' action ["UAVTerminalHackConnection", ''uav'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit (enemy to the drone) and ''uav'' is the UAV to hack.
| Where ''unit'' is any unit (enemy to the drone) and ''uav'' is the UAV to hack.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["UAVTerminalHackConnection", drone];</sqf>
| <sqf>player action ["UAVTerminalHackConnection", drone];</sqf>
Line 1,937: Line 1,945:
== UAVTerminalMakeConnection ==
== UAVTerminalMakeConnection ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Connects player to chosen UAV. Does what "Connect terminal to UAV" UI action does.
| style="width: 99%" | Connects player to chosen UAV. Does what "Connect terminal to UAV" UI action does.
Line 1,944: Line 1,952:
'''NOTE''': Player has to be in normal UI action proximity to the UAV for this action to work.
'''NOTE''': Player has to be in normal UI action proximity to the UAV for this action to work.
To connect to far away UAV use connectTerminalToUAV command instead.
To connect to far away UAV use connectTerminalToUAV command instead.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["UAVTerminalMakeConnection", ''uav'']
| ''unit'' action ["UAVTerminalMakeConnection", ''uav'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a player and ''uav'' is UAV to be connected to.
| Where ''unit'' is a player and ''uav'' is UAV to be connected to.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["UAVTerminalMakeConnection", allUnitsUAV select 0];</sqf>
| <sqf>player action ["UAVTerminalMakeConnection", allUnitsUAV select 0];</sqf>
Line 1,958: Line 1,966:
== UAVTerminalOpen ==
== UAVTerminalOpen ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Opens UAV Terminal UI. Player must have UAV Terminal item in GPS slot of inventory. Does what "Open UAV Terminal" UI action does.
| style="width: 99%" | Opens UAV Terminal UI. Player must have UAV Terminal item in GPS slot of inventory. Does what "Open UAV Terminal" UI action does.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["UAVTerminalOpen", ''unit'']
| ''unit'' action ["UAVTerminalOpen", ''unit'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is a player.
| Where ''unit'' is a player.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["UAVTerminalOpen", player];</sqf>
| <sqf>player action ["UAVTerminalOpen", player];</sqf>
Line 1,976: Line 1,984:
== UAVTerminalReleaseConnection ==
== UAVTerminalReleaseConnection ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Disconnects player from connected UAV. Does what "Disconnect terminal from UAV" UI action does.
| style="width: 99%" | Disconnects player from connected UAV. Does what "Disconnect terminal from UAV" UI action does.


'''NOTE''': Unlike with "UAVTerminalMakeConnection", player can be far away from the UAV. Notice how the passed params are swapped around for this action.
'''NOTE''': Unlike with "UAVTerminalMakeConnection", player can be far away from the UAV. Notice how the passed params are swapped around for this action.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''uav'' action ["UAVTerminalReleaseConnection", ''unit'']
| ''uav'' action ["UAVTerminalReleaseConnection", ''unit'']
|- style="vertical-align: top"
|-
|
|
| Where ''uav'' is the connected UAV and ''unit'' is the player controlling it.
| Where ''uav'' is the connected UAV and ''unit'' is the player controlling it.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>getConnectedUAV player action ["UAVTerminalReleaseConnection", player];</sqf>
| <sqf>getConnectedUAV player action ["UAVTerminalReleaseConnection", player];</sqf>
|}
|}


== UnlockVehicleControl ==
== UnlockVehicleControl ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Unlocks co-pilot controls, shows Arma_3:_Actions#TakeVehicleControl|Take Control action. enableCopilot must be set true to function.
| style="width: 99%" | Unlocks co-pilot controls, shows {{Link|#TakeVehicleControl|Take Control}} action. enableCopilot must be set true to function.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["UnlockVehicleControl", ''vehicle'']
| ''unit'' action ["UnlockVehicleControl", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
| Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
| Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["UnlockVehicleControl", vehicle player];</sqf>
| <sqf>player action ["UnlockVehicleControl", vehicle player];</sqf>
Line 2,014: Line 2,021:
== UseMagazine ==
== UseMagazine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Loads a weapon with magazine with known id and fires that weapon. The weapon is selected based on magazine type. Details for <cr> and <id> can be found with magazinesDetail command (not 100% about <cr> but it seems 0 works for all weapons)
| style="width: 99%" | Loads a weapon with magazine with known id and fires that weapon. The weapon is selected based on magazine type. Details for <cr> and <id> can be found with magazinesDetail command (not 100% about <cr> but it seems 0 works for all weapons)
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''LOGIC'' action ["UseMagazine", ''target'', ''magazine creator'', ''<cr>'', ''<id>'']
| ''LOGIC'' action ["UseMagazine", ''target'', ''magazine creator'', ''<cr>'', ''<id>'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,045: Line 2,052:
== User ==
== User ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Soldier 'unitName' does nothing. Executes the custom action with the given index of the the target unit. Indexes are based upon the order in which the actions are added to the unit. See addAction.
| style="width: 99%" | Soldier 'unitName' does nothing. Executes the custom action with the given index of the the target unit. Indexes are based upon the order in which the actions are added to the unit. See addAction.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unitName'' action ["User", ''target unit'', ''action index'']
| ''unitName'' action ["User", ''target unit'', ''action index'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>gameLogic action ["User", player, 3];</sqf>
| <sqf>gameLogic action ["User", player, 3];</sqf>
Line 2,063: Line 2,070:
== UserType ==
== UserType ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | As of ArmA version 1.08, using this action type will cause ArmA to crash to desktop.
| style="width: 99%" | As of ArmA version 1.08, using this action type will cause ArmA to crash to desktop.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["UserType", ''target'', ''action index'']
| ''unit'' action ["UserType", ''target'', ''action index'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,081: Line 2,088:
== UseWeapon ==
== UseWeapon ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Soldier 'unitOne' will play the action animation. Target unit will fire the specified unit's position in the target vehicle's (can be the unit itself) weapon mode index. The indexes seem to be based upon the order in which weapons are added to the unit/vehicle, with each weapon's muzzle's fire mode having an unique index. Weapons can be fired in this way from a not-readied position (eg, firing a rifle on a soldiers back). Pistols will fire from the current weapon's proxy. It can also be used to sound the horn on AI controlled vehicles.
| style="width: 99%" | Soldier 'unitOne' will play the action animation. Target unit will fire the specified unit's position in the target vehicle's (can be the unit itself) weapon mode index. The indexes seem to be based upon the order in which weapons are added to the unit/vehicle, with each weapon's muzzle's fire mode having an unique index. Weapons can be fired in this way from a not-readied position (eg, firing a rifle on a soldiers back). Pistols will fire from the current weapon's proxy. It can also be used to sound the horn on AI controlled vehicles.
|- style="vertical-align: top"
|-
|
|
| '''NOTE:''' If 'unitOne' is player object, the player goes into pick up animation before action is performed. If 'unitOne' is a game logic, the action is performed immediately with no animation.
| '''NOTE:''' If 'unitOne' is player object, the player goes into pick up animation before action is performed. If 'unitOne' is a game logic, the action is performed immediately with no animation.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unitOne'' action ["UseWeapon", ''target vehicle'', ''target unit'', ''weapon index'']
| ''unitOne'' action ["UseWeapon", ''target vehicle'', ''target unit'', ''weapon index'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>
| <sqf>
Line 2,114: Line 2,121:
== VectoringDown ==
== VectoringDown ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | If VTOL auto-vectoring is off, incremental forward tilt of engine nacelles.
| style="width: 99%" | If VTOL auto-vectoring is off, incremental forward tilt of engine nacelles.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["VectoringDown", ''vehicle'']
| ''unit'' action ["VectoringDown", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,132: Line 2,139:
== VectoringUp ==
== VectoringUp ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | If VTOL auto-vectoring is off, incremental upward tilt of engine nacelles.
| style="width: 99%" | If VTOL auto-vectoring is off, incremental upward tilt of engine nacelles.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["VectoringUp", ''vehicle'']
| ''unit'' action ["VectoringUp", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,150: Line 2,157:
== VTOLVectoring ==
== VTOLVectoring ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Toggles '''off''' VTOL auto-vectoring (manual mode)
| style="width: 99%" | Toggles '''off''' VTOL auto-vectoring (manual mode)
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["VTOLVectoring", ''vehicle'']
| ''unit'' action ["VTOLVectoring", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,168: Line 2,175:
== VTOLVectoringCancel ==
== VTOLVectoringCancel ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Toggles '''on''' VTOL auto-vectoring (forward mode)
| style="width: 99%" | Toggles '''on''' VTOL auto-vectoring (forward mode)
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["VTOLVectoringCancel", ''vehicle'']
| ''unit'' action ["VTOLVectoringCancel", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,185: Line 2,192:


== WeaponInHand / WeaponOnBack ==
== WeaponInHand / WeaponOnBack ==
:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Soldier 'unitName' does nothing, 'target unit' moves his weapon from/to the safety position (gun held across chest pointing at the ground).
| style="width: 99%" | Soldier 'unitName' does nothing, 'target unit' moves his weapon from/to the safety position (gun held across chest pointing at the ground).
Change is persistent with player, but AI units will change back to suit their current setBehaviour|behaviour mode. AI generally keep their rifles safe unless moving or targeting.
Change is persistent with player, but AI units will change back to suit their current setBehaviour|behaviour mode. AI generally keep their rifles safe unless moving or targeting.
<!-- (''VBS2 calls this action "PutWeaponOnBack"'') -->
<!-- (''VBS2 calls this action "PutWeaponOnBack"'') -->
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unitName'' action ["WeaponInHand", ''target unit'']
| ''unitName'' action ["WeaponInHand", ''target unit'']
|- style="vertical-align: top"
|-
|
|
| ''unitName'' action ["WeaponOnBack", ''target unit'']
| ''unitName'' action ["WeaponOnBack", ''target unit'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>SoldierOne action ["WeaponOnBack", SoldierTwo];</sqf>
| <sqf>SoldierOne action ["WeaponOnBack", SoldierTwo];</sqf>
Line 2,208: Line 2,215:
== WheelsBrakeOn ==
== WheelsBrakeOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Engages wheels brakes on RTM helicopter
| style="width: 99%" | Engages wheels brakes on RTM helicopter
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["WheelsBrakeOn", ''vehicle'']
| ''unit'' action ["WheelsBrakeOn", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["WheelsBrakeOn", heli];</sqf>
| <sqf>player action ["WheelsBrakeOn", heli];</sqf>
Line 2,226: Line 2,233:
== WheelsBrakeOff ==
== WheelsBrakeOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Disengages wheels brakes on RTM helicopter
| style="width: 99%" | Disengages wheels brakes on RTM helicopter
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| ''unit'' action ["WheelsBrakeOff", ''vehicle'']
| ''unit'' action ["WheelsBrakeOff", ''vehicle'']
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["WheelsBrakeOff", heli];</sqf>
| <sqf>player action ["WheelsBrakeOff", heli];</sqf>
Line 2,247: Line 2,254:
== LoadOtherMagazine ==
== LoadOtherMagazine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,265: Line 2,272:
== LoadEmptyMagazine ==
== LoadEmptyMagazine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,283: Line 2,290:
== PutWeapon ==
== PutWeapon ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Is alias of DropWeapon
| style="width: 99%" | Is alias of DropWeapon
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>_wh = "GroundWeaponHolder_Scripted" createVehicle position player;
| <sqf>_wh = "GroundWeaponHolder_Scripted" createVehicle position player;
Line 2,302: Line 2,309:
== PutMagazine ==
== PutMagazine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | is synonym for DropMagazine (same syntax)?
| style="width: 99%" | is synonym for DropMagazine (same syntax)?
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,320: Line 2,327:
== StartTimer ==
== StartTimer ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | is synonym for SetTimer (same syntax) ?
| style="width: 99%" | is synonym for SetTimer (same syntax) ?
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,338: Line 2,345:
== HideWeapon ==
== HideWeapon ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| unit action ["hideWeapon",<object>,<object>,<Number>]
| unit action ["hideWeapon",<object>,<object>,<Number>]
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,356: Line 2,363:
== MarkWeapon ==
== MarkWeapon ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Something to do with campaign. Campaign param "WeaponPool" has to be enabled as well as mission param "MarkWeapons". Possibly related to "MarkEntity" action as well.
| style="width: 99%" | Something to do with campaign. Campaign param "WeaponPool" has to be enabled as well as mission param "MarkWeapons". Possibly related to "MarkEntity" action as well.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,374: Line 2,381:
== HandGunOffStand ==
== HandGunOffStand ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,392: Line 2,399:
== HandGunOnStand ==
== HandGunOnStand ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,410: Line 2,417:
== TakeDropMagazine ==
== TakeDropMagazine ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
| '''Description''': Redundant even if works, use [[Arma_3:_Actions#TakeMagazine | TakeMagazine]]
| '''Description''': Redundant even if works, use {{Link|#TakeMagazine}}
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,427: Line 2,434:
== TakeDropWeapon ==
== TakeDropWeapon ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,444: Line 2,451:
== Assemble ==
== Assemble ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>_unit action ["Assemble", (nearestObject [_unit, "Tripod_Bag"])];</sqf>
| <sqf>_unit action ["Assemble", (nearestObject [_unit, "Tripod_Bag"])];</sqf>
Line 2,462: Line 2,469:
== FirstAid ==
== FirstAid ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,480: Line 2,487:
== GetOver ==
== GetOver ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,498: Line 2,505:
== GunLightOff ==
== GunLightOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["GunLightOff", player];</sqf>
| <sqf>player action ["GunLightOff", player];</sqf>
Line 2,516: Line 2,523:
== GunLightOn ==
== GunLightOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["GunLightOn", player];</sqf>
| <sqf>player action ["GunLightOn", player];</sqf>
Line 2,534: Line 2,541:
== IRLaserOff ==
== IRLaserOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["IRLaserOff", player];</sqf>
| <sqf>player action ["IRLaserOff", player];</sqf>
Line 2,552: Line 2,559:
== IRLaserOn ==
== IRLaserOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| <sqf>player action ["IRLaserOn", player];</sqf>
| <sqf>player action ["IRLaserOn", player];</sqf>
Line 2,570: Line 2,577:
== OpenBag ==
== OpenBag ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Opens inventory UI with backpack of a unit (another unit). Unit must be in proximity.
| style="width: 99%" | Opens inventory UI with backpack of a unit (another unit). Unit must be in proximity.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| unit1 action ["OpenBag", unit2];
| unit1 action ["OpenBag", unit2];
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
| player action ["OpenBag", bob];
| player action ["OpenBag", bob];
Line 2,588: Line 2,595:
== TakeBag ==
== TakeBag ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | Unit takes specified backpack from the ground.
| style="width: 99%" | Unit takes specified backpack from the ground.
|- style="vertical-align: top"
|-
! Syntax
! Syntax
| _unit action ["TakeBag", _bag];
| _unit action ["TakeBag", _bag];
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,626: Line 2,633:
== Tell ==
== Tell ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,644: Line 2,651:
== APUOn ==
== APUOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,662: Line 2,669:
== APUOff ==
== APUOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,680: Line 2,687:
== BatteriesOn ==
== BatteriesOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,698: Line 2,705:
== BatteriesOff ==
== BatteriesOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,716: Line 2,723:
== StarterOn<#> ==
== StarterOn<#> ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | StarterOn(1-3)
| style="width: 99%" | StarterOn(1-3)
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,734: Line 2,741:
== StarterOff<#> ==
== StarterOff<#> ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | StarterOff(1-3)
| style="width: 99%" | StarterOff(1-3)
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,752: Line 2,759:
== ThrottleFull<#> ==
== ThrottleFull<#> ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | ThrottleFull(1-3)
| style="width: 99%" | ThrottleFull(1-3)
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,770: Line 2,777:
== ThrottleIdle<#> ==
== ThrottleIdle<#> ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | ThrottleIdle(1-3)
| style="width: 99%" | ThrottleIdle(1-3)
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,788: Line 2,795:
== ThrottleOff<#> ==
== ThrottleOff<#> ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
| style="width: 99%" | ThrottleOff(1-3)
| style="width: 99%" | ThrottleOff(1-3)
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,806: Line 2,813:
== RotorBrakeOn ==
== RotorBrakeOn ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,824: Line 2,831:
== RotorBrakeOff ==
== RotorBrakeOff ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,842: Line 2,849:
== AIAssemble ==
== AIAssemble ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,860: Line 2,867:
== ListLeftVehicleDisplay ==
== ListLeftVehicleDisplay ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,878: Line 2,885:
== ListRightVehicleDisplay ==
== ListRightVehicleDisplay ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,896: Line 2,903:
== ListPrevLeftVehicleDisplay ==
== ListPrevLeftVehicleDisplay ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,914: Line 2,921:
== ListPrevRightVehicleDisplay ==
== ListPrevRightVehicleDisplay ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,932: Line 2,939:
== CloseLeftVehicleDisplay ==
== CloseLeftVehicleDisplay ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,950: Line 2,957:
== CloseRightVehicleDisplay ==
== CloseRightVehicleDisplay ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,968: Line 2,975:
== NextModeLeftVehicleDisplay ==
== NextModeLeftVehicleDisplay ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 2,986: Line 2,993:
== NextModeRightVehicleDisplay ==
== NextModeRightVehicleDisplay ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 3,004: Line 3,011:
== UnloadUnconsciousUnits ==
== UnloadUnconsciousUnits ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 3,022: Line 3,029:
== HookCargo ==
== HookCargo ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 3,040: Line 3,047:
== UnhookCargo ==
== UnhookCargo ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 3,058: Line 3,065:
== LoadVehicle ==
== LoadVehicle ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 3,076: Line 3,083:
== UnloadVehicle ==
== UnloadVehicle ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|
Line 3,094: Line 3,101:
== UnloadAllVehicles ==
== UnloadAllVehicles ==


:{|
:{| class="valign-top"
|- style="vertical-align: top"
|-
! Description
! Description
|
|
|- style="vertical-align: top"
|-
! Syntax
! Syntax
|
|
|- style="vertical-align: top"
|-
|
|
|
|
|- style="vertical-align: top"
|-
! Example
! Example
|
|

Latest revision as of 22:40, 3 August 2023

General Syntax

unit action ["actionType", parameter(s)]
unit: Object. Can be any occupied vehicle or person that is not in a vehicle or also a Game Logic.
"actionType": String. Name of the action, found in the CfgActions class. Not case sensitive.
parameter(s): Various data types, dependant on the action used. The number of required parameters depends on the action type.


Actions

ActiveSensorsOn

Description Activates the vehicle's active sensor (radar).
Syntax unit action ["ActiveSensorsOn", vehicle]
Example
player action ["ActiveSensorsOn", vehicle player];


ActiveSensorsOff

Description Deactivates the vehicle's active sensor (radar).
Syntax unit action ["ActiveSensorsOff", vehicle]
Example
player action ["ActiveSensorsOff", vehicle player];


AddBag

Description Causes a unit to take backpack from another unit/vehicle or weaponholder.
Syntax targetUnit action ["AddBag", sourceUnit, "backpackName"]
Where targetUnit is the person to recieve a backpack (the action animation will be performed), sourceUnit is either another unit/vehicle or weaponholder containing the backpack. "backpackName" is the classname (string) of the backpack to be picked up.
Note Bags can be picked up at any distance. To drop bag use "DropBag" action. If several backpacks of the same class name exist in the container, the oldest will be added first.
Examples
soldierOne action ["AddBag", soldierTwo, backpack soldierTwo];

player action ["AddBag", car, typeOf firstBackpack car];
Swap player bag with parachute:
player action ["DropBag", _plane, backpack player]; player action ["AddBag", _plane, "B_Parachute"];


ArtilleryComputer

Description Opens up Artillery Computer display just like the one in action menu for a mortar. Unit has to be in gunner position or display will immediately close.
Syntax unit action ["ArtilleryComputer", artillery]
Where unit is any unit, and artillery is the artillery weapon
Example
soldierOne action ["ArtilleryComputer", mortarOne];


AutoHover

Description Toggles auto-hovering on. Note that while the auto-hover status can be toggled on an AI crewed or even an empty vehicle, it will only affect a vehicle controlled by a human pilot.
Syntax unit action ["autoHover", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is any vehicle that is capable of hovering.
Example
chopperOne action ["autoHover", chopperOne];


AutoHoverCancel

Description Toggles auto-hovering off. Note that while the auto-hover status can be toggled on an AI crewed or even an empty vehicle, it will only affect a vehicle controlled by a human pilot.
Syntax unit action ["autoHoverCancel", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is any vehicle that is capable of hovering.
Example
chopperOne action ["autoHoverCancel", chopperOne];


BackFromUAV

Description Moves player control back from driver/gunner position of connected UAV. Does what "Release UAV controls" UI action does.
Syntax unit action ["BackFromUAV"]
Where unit is the connected UAV unit.
Example

CancelAction

Description Cancels an action in progress. The target unit will complete it is current animation, although the action itself will not be performed.
Syntax unit action ["cancelAction", targetUnit]
Where unit is any unit (no action animation is performed) and targetUnit is any unit that is in the process of performing an action.
Example
soldierOne action ["CancelAction", soldierOne];


CancelLand

Description Cancels autopilot landing for an aircraft, including AI controlled aircraft.
Syntax unit action ["cancelLand", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is any vehicle that is currently performing an autopilot landing.
Example
planeOne action ["cancelLand", planeOne];


CancelTakeFlag

Description Cancels taking of a flag. The unit will complete the taking/action animation, but the flag will remain attached to it is current object. This action needs to be executed while the flag is being taken (which happens after the unit completes the taking/action animation) to prevent a unit taking the flag. For example, if a person is taking a flag from a flagpole, then the cancelTakeFlag action should be executed while the flag is descending the flagpole.
Syntax unit action ["cancelTakeFlag", targetFlag]
Where unit is any unit that is currently taking a flag (no action animation is performed) and targetFlag' is a flag object.
Example
westSoldierOne action ["cancelTakeFlag", eastFlag];


CollisionLightOff

Description Turns off the collision lights of an air vehicle.
Syntax unit action ["CollisionLightOff", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is a vehicle with lights.
Example
player action ["CollisionLightOff", vehicle player];


CollisionLightOn

Description Turns on the collision lights of an air vehicle.
Syntax unit action ["CollisionLightOn", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is a vehicle with lights.
Example
player action ["CollisionLightOn", vehicle player];


Deactivate

Description Causes a unit to deactivate and take a active satchel charge placed by any unit. This action can be performed upon a satchel object from any distance.

This action also works for landmines created with createVehicle command:

mine = "ATMine_Range_Ammo" createVehicle getPosATL player; // create player action ["Deactivate", player, mine]; // deactivate

Syntax unit action ["deactivate", targetUnit, targetObject]
Where unit is any unit (they will perform the action animation as if deactivating a satchel charge). targetUnit will have the deactivated satchel charge added to it is inventory. targetObject is the armed satchel object to be deactivated (class "pipeBomb" or "timeBomb").
Examples
soldierOne action ["deactivate", soldierOne, mySatchelCharge];
soldierOne action ["deactivate", soldierOne, nearestObject [soldierOne, "pipeBomb"]];


DeactivateMine

Description Causes a unit to deactivate any armed landmine that is within about two meters of a unit. Neither unit requires the ability to disable landmines.

NOTE: This action works only with mines that have been spotted by player (marked with triangle). Use "Deactivate" if you need to deactivate any mine.

Syntax unit action ["deactivateMine", targetUnit]
Where unit is any unit, who will perform the action animation. The closest landmine to targetUnit will be deactivated.
Example
soldierOne action ["deactivateMine", soldierOne];


Diary

Description Use and effects unknown.
Syntax unit action ["diary", <target>]
Example


Disassemble

Description Takes assembled weapon to parts (carry bags). Assembled weapon object reference may need to be kept for assembly. See also: enableWeaponDisassembly
Syntax unit action ["Disassemble", weapon]
Where unit is any unit and weapon is assembled weapon
Example
soldierOne action ["Disassemble", mortarOne];


DropBag

Description Causes a unit to drop a backpack into another unit/vehicle. To drop backpack on the ground, a weaponholder object needs to be created first.
Syntax sourceUnit action ["DropBag", targetUnit, "backpackName"]
Where sourceUnit is the person to drop a backpack (the action animation will be performed), targetUnit is either another unit/vehicle into which the backpack will be dropped or a weaponholder. "backpackName" is the classname (string) of the backpack to be dropped.
Note Bags can be dropped into other units at any distance. If targetUnit already has a backpack, sourceUnit's backpack will drop to the ground at targetUnit's feet, and be unavailable (for picking up/using).
Examples
soldierOne action ["DropBag", soldierTwo, backpack soldierOne];

_gwh = "Weapon_Empty" createVehicle getPosATL player; player action ["DropBag", _gwh, typeOf unitBackpack player]; // the reason "Weapon_Empty" type of weaponholder is used in this case is because // unlike other weaponholders it is not autodeleted when empty and will not disappear before the action is complete. // you should take care of deleting it after yourself. Alternatively use "PutBag" action.

(unitBackpack player) setVariable ["backpackOwner", name player, true]; player action ["DropBag", car, typeOf unitBackpack player]; hint ((firstBackpack car) getVariable "backpackOwner");

Swap player bag with parachute:

player action ["DropBag", _plane, backpack player]; player action ["AddBag", _plane, "B_Parachute"];

Transfer player's backpack to bob

player action ["DropBag", bob];


DropMagazine

Description Causes a person to drop a magazine either into another unit (both persons and vehicles), or onto the ground (creating a new WeaponHolder object). Magazines can be dropped into other units at any distance.
Syntax unit action ["dropMagazine", targetUnit, "magazineName"]
Where unit is the person to drop a magazine (the action animation will be performed), targetUnit is either another unit into which the magazine will be dropped, or the same unit that is dropping the magazine. "magazineName" is the classname (string) of the magazine to be dropped (see the ArmA weapons list for magazine classnames).
Examples
soldierOne action ["dropMagazine", soldierOne, "30Rnd_545x39_AK"];
soldierOne action ["dropMagazine", ammoCrateOne, "30Rnd_545x39_AK"];


DropWeapon

Description Causes a person to drop a weapon and all associated magazines either into specified vehicle or weaponholder. Weapons can be dropped at any distance.
Syntax unit action ["dropWeapon", targetHolder, "weaponName"]
Where unit is the person to drop a weapon (the action animation will be performed), targetHolder is either a vehicle or weaponholder. "weaponName" is the classname (string) of the CfgWeapons class.
Examples
private _weaponHolder = "GroundWeaponHolder_Scripted" createVehicle getPosATL player; player action ["DropWeapon", _weaponHolder, currentWeapon player];

soldierOne action ["DropWeapon", unitBackpack soldierTwo, currentWeapon soldierOne];
player action ["DropWeapon", tank, "arifle_MX_ACO_pointer_F"];


Eject

Description Causes a person to eject out of the vehicle they are currently inside. If the unit was the driver of the vehicle, the vehicle will retain it is steering control input and it is engine will remain on. This action has a global effect when used on a local unit in multiplayer. If the vehicle parameter used is an moving aircraft, the ejecting person will use a parachute (and likewise if it is not an moving aircraft, no parachute will be used).
Syntax unit action ["eject", vehicle]
Where unit is the person to eject from their current vehicle, and vehicle is any vehicle (generally the vehicle unit is within).
Example
soldierOne action ["Eject", vehicle soldierOne];


EngineOn

Description Turns a vehicle's engine on. This command will not override an AI driver's desires.
Syntax unit action ["engineOn", targetVehicle]
Where unit is any unit, and targetVehicle is the vehicle to start it is engine.
Example
soldierOne action ["engineOn", vehicle soldierOne];


EngineOff

Description Turns a vehicle's engine off. This command will not override an AI driver's desires.
Syntax unit action ["engineOff", targetVehicle]
Where unit is any unit, and targetVehicle is the vehicle to have it is engine turned off.
Example
soldierOne action ["engineOff", vehicle soldierOne];


FireInflame

Description Ignites a fireplace object (from any distance).
Syntax unit action ["FireInflame", targetObject]
Where unit is any unit(the action animation will be performed), and targetObject is the fireplace to be ignited.
Example
soldierOne action ["FireInflame", firePlaceOne];


FirePutDown

Description Extinguishes a fireplace object (from any distance).
Syntax unit action ["FirePutDown", targetObject]
Where unit is any unit (the action animation will be performed), and targetObject is the fireplace to be extinguished.
Example
soldierOne action ["FirePutDown", firePlaceOne];


FlapsUp

Description Adjusts an aircraft's flaps upwards one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
Syntax unit action ["flapsUp", targetVehicle]
Where unit is any unit (the action animation will not be performed), and targetVehicle is the aircraft to have it is flaps adjusted.
Example
harrierOne action ["flapsUp", harrierOne];


FlapsDown

Description Adjusts an aircraft's flaps down one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
Syntax unit action ["flapsDown", targetVehicle]
Where unit is any unit (the action animation will not be performed), and targetVehicle is the aircraft to have it is flaps adjusted.
Example
harrierOne action ["flapsDown", harrierOne];


Gear

Description Opens inventory dialog for the player and plays the appropriate animation. The left part of the inventory dialog gets populated with the inventory of the target unit. Player has to be in range of inventory operations with the targetUnit (~ <5m).
Syntax unit action ["Gear", targetUnit]
Where unit is a player, and targetUnit is another player, vehicle or container.
Examples
player action ["Gear","GroundWeaponHolder" createVehicle position player];
player action ["Gear", objNull];
player action ["Gear", soldier1];


GetInCargo

Description Instantly moves a person to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as cargo, in a specific cargo position if given as an optional parameter, otherwise in the first available cargo position. If the specific position is already occupied, the person will board in the first available cargo position. If the all cargo positions are already occupied by living persons, or no cargo position exists, the boarding will fail. This action works only with cargo positions that have no person turret, i.e. if player cannot shoot his rifle from them. If position is cargo but also person turret, it will be ignored. Use fullCrew [_veh, "cargo", true] to determine which positions are compatible cargo. Alternatively, use moveInCargo command instead, which has no such limitation.
Syntax unit action ["getInCargo", targetVehicle]
unit action ["getInCargo", targetVehicle, positionNumber]
Where unit is the person to board, and targetVehicle is the vehicle to be boarded. positionNumber is a specific cargo position index number.
Examples
soldierOne action ["getInCargo", truckOne];
soldierOne action ["getInCargo", truckOne, 0];


GetInCommander

Description Instantly moves a person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, they then attempt to board the vehicle as the commander. The boarding will fail if the position is already occupied or does not exist.
Syntax unit action ["getInCommander", targetVehicle]
Where unit is the person to board, and targetVehicle is the vehicle to be boarded.
Example
soldierOne action ["getInCommander", tankOne];


GetInDriver

Description Instantly moves an person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the driver/pilot. The boarding will fail if the position is already occupied or does not exist.
Syntax unit action ["getInDriver", targetVehicle]
Where unit is the person to board, and targetVehicle is the vehicle to be boarded.
Example
soldierOne action ["getInDriver", carOne];


GetInGunner

Description Instantly moves a person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the primary gunner. If the gunner position is already occupied by another living person or it does not exist, the boarding will fail. Also see getInTurret.
Syntax unit action ["getInGunner", targetVehicle]
Where unit is the person to board, and targetVehicle is the vehicle to be boarded.
Example
soldierOne action ["getInGunner", mySpotlight];


GetInPilot

Description This action is identical to getInDriver. It instantly moves an person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the driver/pilot. The boarding will fail if the position is already occupied or does not exist.
Syntax unit action ["getInPilot", targetVehicle]
Where unit is the person to board, and targetVehicle is the vehicle to be boarded.
Example
pilotOne action ["getInPilot", chopperOne];


GetInTurret

Description Instantly moves a person (who is not already in a vehicle) to the appropriate boarding position of a vehicle, then they attempt to board the vehicle as the specified turret user. If the turret position is already occupied by another living person the boarding will fail. If the turret position does not exist, ArmA may crash. See also getInGunner.
Syntax unit action ["getInTurret", targetVehicle, turretArray]
Where unit is the person to board, and targetVehicle is the vehicle to be boarded, and turretArray is an array defining the turret. For example, [1] would be a vehicle's second turret, and [0, 2, 1] is the second turret of the third turret of the first turret. A vehicle's turret order is defined in it is class CfgVehicles of the Config.
Examples
gunnerTwo action ["getInTurret", myUH60MG, [1]];
tankCommanderOne action ["getInTurret", myT72, [0,1]];


GetOut

Description Causes a person to disembark from a vehicle, without a parachute in the case of aircraft. See also eject.
Syntax unit action ["getOut", targetVehicle]
Where unit is the person to disembark, and targetVehicle is the vehicle to disembark from.
Example
soldierOne action ["getOut", carOne];


HandGunOn

Description Causes a person to ready their hand gun (if equiped). This action may not work if the unit does not have a primary rifle.
Syntax unit action ["handGunOn", targetUnit]
Where unit is any unit (who will not play the action animation), and targetUnit is the unit who will ready their pistol.
Example
soldierOne action ["handGunOn", soldierOne];


HandGunOff

Description Causes a person to return a readied pistol to it is holster, then switch to the primary rifle. This action may not work if the unit does not have a primary rifle.
Syntax unit action ["handGunOff", targetUnit]
Where unit is any unit (who will not play the action animation), and targetUnit is the person to holster it is pistol.
Example
soldierOne action ["handGunOff", soldierOne];


Heal

Description Instantly teleports a person unit to the target medic. The target medic then heals the unit. If the target unit is not a medic, the animations will still be played, but no healing occurs. If the medic is within a vehicle, no teleporting will occur and the wounded unit will only be healed if they are already within healing range (a few meters).
Syntax unit action ["heal", targetUnit]
Where unit is a wounded person, and targetUnit is the medic to do the healing.
Example
soldierOne action ["heal", medicOne];


HealSoldier

Description Performs one soldier healing of another soldier. Needs to have MedKit or FAK (first aid kit) in the inventory, which gets used.
Syntax unit action ["HealSoldier", targetUnit]
Where unit is the unit to perform treatment, and targetUnit is the unit to recieve treatment.
Example
player action ["HealSoldier", soldier1];


HealSoldierSelf

Description Performs one soldier healing of another soldier. In case the target is the same unit, the soldier performs treatment on himself. Needs to have FAK (first aid kit) in the inventory, which gets used.
Syntax unit action ["HealSoldierSelf", targetUnit]
Where unit is the unit to perform treatment, and targetUnit is the unit to recieve treatment.
Example
player action ["HealSoldierSelf", soldier1];


HideBody

Description Causes a person to bend down and hide (bury) a body in the ground. The body is automatically deleted within a few seconds. The person performing the action does not require the ability to hide bodies, and may be any distance from the body.
Syntax unit action ["hideBody", targetUnit]
Where unit is a person, and targetUnit is a dead person.
Example
soldierOne action ["hideBody", soldierTwo];


InGameMenu

Description Use and effects unknown.
Syntax unit action ["inGameMenu", <target>]
Example


LadderDown

Description Causes a person to play an animation as if mounting the top of a ladder, then instantly teleport onto the specified ladder in the specified position. If the person is controlled by AI, they will automatically climb up or down the ladder. If the 2 parameter syntax is used, the person will become stuck in the ladder mounting animation state until the ladderOff action is executed upon them. It may also crash ArmA (pre 1.09).
Syntax unit action ["ladderDown", targetObject]
unit action ["ladderDown", targetObject, ladderNumber, positionNumber]
Where unit is any person unit, targetObject is an object with a ladder, ladderNumber is a number defining the desired ladder, and positionNumber is a number defining the desired position.
Example
soldierOne action ["ladderDown", (position soldierOne nearestObject 452221), 0, 1];


LadderUp

Description Causes a person to play an animation as if mounting the bottom of a ladder, then instantly teleport onto the specified ladder in the specified position. If the person is controlled by AI, they will automatically climb up or down the ladder. If the 2 parameter syntax is used, the person will become stuck in the ladder mounting animation state until the ladderOff action is executed upon them. It may also crash ArmA (pre 1.09).
Syntax unit action ["ladderUp", targetObject] !!!Warning!!! This syntax causes Arma 3 to freeze
unit action ["ladderUp", targetObject, ladderNumber, positionNumber]
Where unit is any person unit, targetObject is an object with a ladder, ladderNumber is a number defining the desired ladder, and positionNumber is a number defining the desired position (0 - bottom, 1 - top). All numbers in between get rounded towards 1 or 0.
Example
soldierOne action ["ladderUp", (position soldierOne nearestObject 452221), 0, 0];


LadderOff

Description Causes a person to dismount from any ladder of the specified object they may be happen to be on. The alternative 3 parameter syntax expects a number, the use of which is not known.
Syntax unit action ["ladderOff", targetObject]
unit action ["ladderOff", targetObject, unknownNumber]
Where unit is any person unit, targetObject is the object with a ladder that the person is currently upon, unknownNumber is a number.
Example
soldierOne action ["ladderOff", (position soldierOne nearestObject 452221)];


LadderOnDown

Description: This action appears to be identical to LadderDown.


LadderOnUp

Description: This action appears to be identical to LadderUp.


Land

Description Turns on autopilot landing for an aircraft, including AI controlled aircraft. The aircraft will land at the closest airfield.
Syntax unit action ["Land", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is a vehicle that can perform an autopilot landing.
Example
planeOne action ["Land", planeOne];


LandGear

Description Lowers the landing gear of an aircraft. In the case of AI-controlled aircraft, it has to be used in an each-frame loop to to override the AI behavior (otherwise they'll raise the landing gear when they take off).
Syntax unit action ["LandGear", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is a vehicle that can perform an autopilot landing.
Example
planeOne action ["LandGear", planeOne];

LandGearUp

Description Raises the landing gear of an aircraft. In the case of AI-controlled aircraft, it has to be used in an each-frame loop to override the AI behavior (otherwise they'll lower the landing gear when they're close to the ground).
Syntax unit action ["LandGearUp", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is a vehicle that can perform an autopilot landing.
Example
planeOne action ["LandGearUp", planeOne];


LightOff

Description Turns off the headlights of an empty vehicle. If the vehicle is AI-controlled (either as the lone driver, or as the commander/gunner) then the light status depends on the AI's behaviour mode ("combat" or "stealth" = lights off, any other mode = lights on).
Syntax unit action ["lightOff", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is a vehicle with lights.
Example
player action ["lightOff", vehicle player];


LightOn

Description Turns on the headlights of an empty vehicle. If vehicle is AI-controlled, see notes under the LightOff action.
Syntax unit action ["lightOn", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is a vehicle with lights.
Example
player action ["lightOn", vehicle player];


LoadMagazine

Description Plays a reload weapon animation.
Syntax unit action ["loadMagazine", target, magazineCreator, number1, number2, weaponName, muzzleName]
Expects a 7 element array:
target: Object - unit to perform the reload action.
magazineCreator: Object - unknown. Can be objNull.
number1: Number - cr - see magazinesDetail. For characters it is mainly 0
number2: Number - id - magazine ID - can be obtained via magazinesDetail. With 0, it only plays the reload animation. With values from 1 up, it actually reloads the magazine. If the number becomes too high (meaning of the upper limit is also unknown), the action will no longer be performed.
weaponName: String - weapon to reload. Must not be selected, but may cause weapon not to reload to the full amount.
muzzleName: String - weapon's muzzle to reload.
Example
player action ["loadmagazine", player, player, 0, 1 ,"vbs2_us_m16a2_iron_gla", "vbs2_us_m16a2_iron_gla"];


LockVehicleControl

Description Locks co-pilot controls, removes TakeVehicleControl action. enableCopilot must be set true to function.
Syntax unit action ["LockVehicleControl", vehicle]
Where unit is any unit, and vehicle is any vehicle with co-pilot controls.
Example
player action ["LockVehicleControl", vehicle player];


ManualFire

Description Enables manual fire mode for a player unit that is driver or commander of a vehicle. This action toggled manual fire mode in old versions of ArmA. (See also isManualFire)
Syntax unit action ["manualFire", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is the vehicle in which manual fire mode is to be enabled.
Example
player action ["ManualFire", vehicle player];


ManualFireCancel

Description Disables manual fire mode for a player unit that is driver or commander of a vehicle. (See also isManualFire)
Syntax unit action ["manualFireCancel", targetVehicle]
Where unit is any unit (no action animation is performed) and targetVehicle is the vehicle in which manual fire mode is to be disabled.
Example
player action ["manualFireCancel", vehicle player];


MarkEntity

Description Use and effects unknown. Same as MarkWeapon action.
Syntax unit action ["markEntity", <target>]
Example


MoveToCargo

Description Move a unit to the chosen cargo position within a vehicle. If another unit is already in that position, the units will swap positions.

This works only with cargo positions that have no person turret, i.e. if player cannot shoot his rifle from them. If position is cargo but also person turret, it will be ignored. Use fullCrew [_veh, "cargo", true] to determine which positions are compatible cargo.

Syntax unit action ["moveToCargo", targetVehicle, cargoPosition]
Where unit is a unit within targetVehicle, and cargoPosition is the number of the desired cargo position (0 being the first).
Example
player action ["moveToCargo", vehicle player, 2];


MoveToCommander

Description Move a unit to the commander's position within a vehicle. If another unit is already in that position, the units will swap positions.
Syntax unit action ["moveToCommander", targetVehicle]
Where unit is a unit within targetVehicle.
Example
player action ["moveToCommander", vehicle player];


MoveToDriver

Description Move a unit to the driver's position within a vehicle. If another unit is already in that position, the units will generally swap positions, although in some scenarios this action may not work (although having the existing driver move always works).
Syntax unit action ["moveToDriver", targetVehicle]
Where unit is a unit within targetVehicle.
Example
player action ["moveToDriver", vehicle player];


MoveToGunner

Description Move a unit to the primary gunner's position within a vehicle. If another unit is already in that position, the units will swap positions. See also moveToTurret.
Syntax unit action ["moveToGunner", targetVehicle]
Where unit is a unit within targetVehicle.
Example
player action ["moveToGunner", vehicle player];


MoveToPilot

Description: Identical to moveToDriver.


MoveToTurret

Description Move a unit to the chosen turret position within a vehicle. If another unit is already in that position, the units will swap positions.
Syntax unit action ["moveToTurret", targetVehicle, turretArray]
Where unit is a unit within targetVehicle, and turret Array is an array referring to the desired turret (for example, [0,1,2] refers to the third turret of the second turret of the first turret of the vehicle).
Examples
player action ["moveToTurret", vehicle player, [0]];
player action ["moveToTurret", vehicle player, [0,1]];


None

Description Use and effects unknown.
Syntax unit action ["none", <target>]
Example


NVGoggles

Description Causes a unit to put on it is night vision goggles. AI controlled units will automatically put on and take off goggles depending on daylight.
Syntax unit action ["nvGoggles", <anything>]
Where unit is the unit to put on NVGoggles, and <anything> can be anything (it seems to not be used at all, but the action parameter array must contain at least two elements).
Example
player action ["nvGoggles", player];


NVGogglesOff

Description Causes a unit to take off it is night vision goggles. AI controlled units will automatically put on and take off goggles depending on daylight.
Syntax unit action ["nvGogglesOff", <anything>]
Where unit is the unit to put on goggles, and <anything> can be anything (it seems not to be used at all, but the action parameter array must contain at least two elements).
Example
player action ["nvGogglesOff", player];


OpenParachute

Description Opens unit's parachute. Unit must have parachute backpack.
Syntax unit action ["OpenParachute", unit]
Where unit is the unit with parachute backpack.
Example
player action ["OpenParachute", player];


PutBag

Description Causes sourceUnit to bend over and put target backpack on the ground. If the targetUnit param is omitted or it is the same as sourceUnit, the sourceUnit will drop own backpack. If targetUnit is another unit, sourceUnit will bend over but targetUnit will drop its backpack at its feet.
Syntax sourceUnit action ["PutBag", targetUnit]
targetUnit is optional
Note To pick the backpack from the ground use "AddBag" action.
Examples
player action ["PutBag"]; unit1 action ["PutBag", unit2];


Rearm

Description Causes an occupied vehicle or person to rearm from any object with some ammoCargo (generally an ammo truck) in the case of vehicles, or some magazines in it is cargo in the case of a rearming person. The rearming vehicle/person can be any distance from the rearming object. Rearming vehicles takes some time and will be interrupted if the vehicle starts to move. A rearming person will bend down as if picking up something.
Syntax unit action ["rearm", reamingObject]
Where unit is the occupied vehicle or person to be rearmed, and rearmingObject is the object from which to rearm.
Examples
tankOne action ["rearm", ammoTruckOne];
soldierOne action ["rearm", ammoTruckOne];


Refuel

Description Causes an occupied vehicle to refuel from any object with some fuelCargo (generally an refueling truck). The refueling object can be any distance from the vehicle. Refueling takes some time and will be interrupted if the vehicle starts to move.
Syntax vehicle action ["refuel", refuelingObject]
Where vehicle is the occupied vehicle to be refueled, and refuelingObject is the object from which to refuel.
Example
tankOne action ["refuel", refuelTruckOne];


Repair

Description Causes an occupied vehicle to repair from any object with some repairCargo (generally an repair truck). The repair object can be any distance from the vehicle. Repairing takes some time and will be interrupted if the vehicle starts to move.
Syntax vehicle action ["repair", repairingObject]
Where vehicle is the occupied vehicle to be repaired, and repairingObject is the object from which to repair.
Example
tankOne action ["repair", repairTruckOne];


ReturnFlag

Description Causes a person to return a flag from a nearby dead person back to it is flagpole. As of ArmA v1.12 this action is bugged and can not be used upon flags attached to destroyed vehicles.
Syntax unit action ["returnFlag", targetObject]
Where unit is any person, and targetObject is the dead person with a flag to be returned.
Example
soldierOne action ["returnFlag", westFlag];


RepairVehicle

Description Causes an Engineer unit to repair an object using their Engineer Repair ability (from v1.54). The Engineer can be any distance from the vehicle. Repairing takes some time. If unit is not the Engineer class no repairs are made but the animation will still play.
Syntax unit action ["repairVehicle", vehicle]
Where unit is an Engineer unit, and vehicle is the object to repair.
Example
engineerOne action ["repairVehicle", truckOne];


Salute

Description Causes a person to salute. AI controlled units will only make a momentary salute, unless the AI is in safe or careless behaviour mode.
Syntax unit action ["salute", targetUnit]
Where unit is any unit (no animation is performed), and targetUnit is the person to make the salute.
Example
soldierOne action ["salute", soldierOne];


ScudCancel

Description There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
Syntax unit action ["scudCancel", targetVehicle]
Syntax unknown.
Example


ScudLaunch

Description There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
Syntax unit action ["scudLaunch", targetVehicle]
Syntax unknown.
Example


ScudStart

Description There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
Syntax unit action ["scudStart", targetVehicle]
Syntax unknown.
Example


SearchlightOff

Description Turns off the vehicle's searchlight.
Out of all the vanilla vehicles, only the WY-55 Hellcat has a searchlight and the action should be used on the copilot seat. See Arma 3: Lights - Search Light.
Syntax unit action ["SearchlightOff", vehicle]
Example hellcatCopilot action ["SearchlightOff", vehicle hellcatCopilot]


SearchlightOn

Description Turns on the searchlight.
Out of all the vanilla vehicles, only the WY-55 Hellcat has a searchlight and the action should be used on the copilot seat. See Arma 3: Lights - Search Light.
Syntax unit action ["SearchlightOn", vehicle]
Example hellcatCopilot action ["SearchlightOn", vehicle hellcatCopilot]


SetTimer

Description Soldier 'unitOne' plays the action animation. UnitTwo activates and adds 40 seconds to the timer for a satchel charge. Neither unit needs to be near the satchel.

Charge has to be placed first using unitname Fire ["pipebombmuzzle", "pipebombmuzzle", "pipebomb"] or createMine command.

Syntax unitOne action ["SetTimer", unitTwo, bombName]
Example


SitDown

Description Causes a person to sit down on the ground (or get up, if already sitting). AI controlled units will only stay seated if they are in safe or careless behaviour mode.
Syntax unit action ["sitDown", targetUnit]
Where unit is any unit (no animation is performed), and targetUnit is the person who is to sit down.
Example
soldierOne action ["sitDown", soldierOne];


StrokeFist

Description Does nothing. There is no punch animation in ArmA, however this action (presumably) remains in the engine from the days of Operation Flashpoint.
Syntax unit action ["strokeFist", targetVehicle]
Syntax unknown.
Example


StrokeGun

Description Does nothing (other than making a person twitch a little). There is no suitable animation for this action in ArmA, however this action (presumably) remains in the engine from the days of Operation Flashpoint.
Syntax unit action ["strokeGun", targetVehicle]
Syntax unknown.
Example


Surrender

Description Makes unit to put weapon on shoulder and put hands behind the head temporarily. For the lasting effect all weapons from the unit should be removed first.
Syntax unit action ["Surrender", targetUnit]
Where unit is any unit, and targetUnit is the unit to surrender.
Example
soldierOne action ["Surrender", soldierTwo];


SuspendVehicleControl

Description Release vehicle controls from co-pilot. Control immediately returns to pilot.
Syntax unit action ["SuspendVehicleControl", vehicle]
Where unit is any unit, and vehicle is any vehicle with co-pilot controls.
Example
player action ["SuspendVehicleControl", vehicle player];


SwitchMagazine

Description Target unit switches to the given firing mode index. This allows selection of any firing mode for any weapon carried by a soldier, or mounted on a weapon. First are the firing modes for the primary weapon (index 0 upwards), then secondary weapon, then optics, then pistol, then thrown and placed weapons. Changing to NVGoggles just plays an animation, not actually setting NV mode. Unfortunately, the list of firing modes seems to only be created when a soldier is initiated; modes are removed from the list when a weapon is dropped and not re-added when a weapon is picked up. Thus, only use this during the initiation phase of the soldier. On vehicles, where the weapons are not likely to be changed, this action might be useful after the vehicle has been initiated.
If the mode index is higher than available indices, it assumes index 0. If you just want to change the muzzle used, rather than the firing mode, the standard command selectWeapon is generally more useful.
Syntax unit action ["SwitchMagazine", targetVehicle, targetUnit, mode index]
Example
gameLogic action ["SwitchMagazine", unit1, unit1, 3]; gameLogic action ["SwitchMagazine", m1a1, gunner m1a1, 1];


SwitchWeapon

Description UnitOne plays the action animation. Target unit switches to the given muzzle/mode index. Target unit can also be a vehicle. The weapons array is a list of all weapon modes specific to each weapon, muzzle and firing mode combination.
Syntax unit action ["SwitchWeapon", targetUnit, targetUnit, muzzle index]
Example
unit2 action ["SwitchWeapon", unit1, unit1, 7]; player action ["SwitchWeapon", player, player, 3]; // switching personal weapon player action ["SwitchWeapon", vehicle player, player, 3]; // switching vehicle weapon
player action ["SwitchWeapon", player, player, weaponIndex];

Result => weaponIndex: weaponState for "B_soldier_LAT_F"

0: ["arifle_MX_ACO_pointer_F","arifle_MX_ACO_pointer_F","Single","30Rnd_65x39_caseless_mag",30]
1: ["arifle_MX_ACO_pointer_F","arifle_MX_ACO_pointer_F","FullAuto","30Rnd_65x39_caseless_mag",30]
2: ["arifle_MX_ACO_pointer_F","arifle_MX_ACO_pointer_F","fullauto_medium","30Rnd_65x39_caseless_mag",30]
3: ["arifle_MX_ACO_pointer_F","arifle_MX_ACO_pointer_F","single_medium_optics1","30Rnd_65x39_caseless_mag",30]
4: ["arifle_MX_ACO_pointer_F","arifle_MX_ACO_pointer_F","single_far_optics2","30Rnd_65x39_caseless_mag",30]
5: ["launch_NLAW_F","launch_NLAW_F","launch_NLAW_F","NLAW_F",1]
6: ["hgun_P07_F","hgun_P07_F","hgun_P07_F","16Rnd_9x21_Mag",16]
7: ["Throw","HandGrenade_Stone","HandGrenade_Stone","",0]
8: ["Throw","HandGrenadeMuzzle","HandGrenadeMuzzle","",0]
9: ["Throw","MiniGrenadeMuzzle","MiniGrenadeMuzzle","",0]
10: ["Throw","MiniGrenadeMuzzle","MiniGrenadeMuzzle","",0]
11: ["Throw","SmokeShellYellowMuzzle","SmokeShellYellowMuzzle","",0]
12: ["Throw","SmokeShellYellowMuzzle","SmokeShellYellowMuzzle","",0]
13: ["Throw","SmokeShellRedMuzzle","SmokeShellRedMuzzle","",0]
14: ["Throw","SmokeShellPurpleMuzzle","SmokeShellPurpleMuzzle","",0]
15: ["Throw","SmokeShellOrangeMuzzle","SmokeShellOrangeMuzzle","",0]
16: ["Throw","SmokeShellBlueMuzzle","SmokeShellBlueMuzzle","",0]
17: ["Throw","SmokeShellBlueMuzzle","SmokeShellBlueMuzzle","",0]
18: ["Throw","ChemlightRedMuzzle","ChemlightRedMuzzle","",0]
19: ["Throw","ChemlightYellowMuzzle","ChemlightYellowMuzzle","",0]
20: ["Throw","ChemlightBlueMuzzle","ChemlightBlueMuzzle","",0]
21: ["Throw","IRGrenade","IRGrenade","",0]
22: ["Put","DemoChargeMuzzle","DemoChargeMuzzle","",0]
23: ["Put","PipeBombMuzzle","PipeBombMuzzle","",0]
24: ["Put","MineMuzzle","MineMuzzle","",0]
25: ["Put","ClassicMineRangeMuzzle","ClassicMineRangeMuzzle","",0]
27: ["Put","BoundingMineRangeMuzzle","BoundingMineRangeMuzzle","",0]
28: ["Put","DirectionalMineRangeMuzzle","DirectionalMineRangeMuzzle","",0]
29: ["Put","ClassicMineWireMuzzle","ClassicMineWireMuzzle","",0]


As of 2.10, weaponsInfo is better suited for finding the desired weapon index


SwitchToUAVDriver

Description Moves player control into driver position of connected UAV. Does what "Take UAV controls" UI action does.
Syntax unit action ["SwitchToUAVDriver", uav]
Where unit is a player and uav is the connected UAV.
Example
player action ["SwitchToUAVDriver", getConnectedUAV player];


SwitchToUAVGunner

Description Moves player control into gunner position of connected UAV. Does what "Take UAV turret controls" UI action does.
Syntax unit action ["SwitchToUAVGunner", uav]
Where unit is a player and uav is the connected UAV.
Example
player action ["SwitchToUAVGunner", getConnectedUAV player];


TakeFlag

Description Soldier 'unitname' takes control of 'flag1'. He must be close to the flagpole and it must belong to an enemy side.
Syntax unit action ["TakeFlag", flag1]
Example
player action ["TakeFlag", FlagOne];


TakeMagazine

Description Soldier 'unit' takes one magazine of specified type from the ground (Weaponholder) or from named vehicle (ammo box, car, etc.) Transfer happens immediately and via teleportation. Unit plays pickup animation at its current position, no matter where magazine is. Since Arma 3 v2.06.147667 optional param 'forcePutInBackpack' is added allowing to store picked up magazine in backpack. By default the magazine will go to any unit container with space, starting with uniform.
Syntax unit action ["TakeMagazine", weaponholder, magazineName, (forcePutInBackpack)]
Where unit is any unit, and weaponholder is storage container.
Example1
player action ["TakeMagazine", ammoBox, "RPGLauncher"];
Example2 Drop Magazine, then make your buddy Bob come and take magazine and put it in backpack:

0 spawn { private _wh = "Weapon_Empty" createVehicle (player getRelPos [2, 0]); _mag = currentMagazine player; player action ["PutMagazine", _wh, _mag]; _bob = group player createUnit ["B_Soldier_F", player getRelPos [10, 0], [], 0, "NONE"]; _bob addBackpack "B_AssaultPack_blk"; _bob doMove position _wh; waitUntil { unitReady _bob }; _bob action ["TakeMagazine", _wh, _mag, true]; };

TakeWeapon

Description Soldier 'unitname' takes weapon of specified type (see list) from the ground (Weaponholder) or from named vehicle (ammo box, car, etc.) Transfer happens immediately and via teleportation. Unit1 plays pickup animation at its current position, no matter where weapon is.
unit action ["TakeWeapon", vehicle, weaponName]
Where unit is any unit, and vehicle is any unit or vehicle.
Example
player action ["TakeWeapon", SoldierTwo, currentWeapon player];

TakeMine

Description Unit will perform pick up action animation. The closest mine that is within two meters of the target unit will be placed into the target unit's inventory. The mine has to be active for this action to succeed. If there is not enough room in the target inventory, the mine will still be picked up but will not appear in inventory. See createMine for how to place explosive by script.
Syntax unit action ["TakeMine", targetUnit]
Example
player action ["TakeMine", player];


TakeVehicleControl

Description In case of a helicopter, copilot will take flying controls, even if enableCopilot is disabled and isCopilotEnabled is false. Use SuspendVehicleControl action to release control.
Syntax unit action ["TakeVehicleControl", vehicle]
Where unit is any unit, and vehicle is any vehicle with co-pilot controls.
Example
player action ["TakeVehicleControl", vehicle player];


Talk

Description Use and effects unknown.
Syntax unit action ["Talk", target]
Example


TeamSwitch

Description Opens the normal team-switch dialog. <current unit> will be greyed out in the list and thus unselectable.

The effect of the second array element is unknown, but it must be a unit. Works in single-player game only (in MP games, will just momentarily show the mouse cursor without the team-switch window being shown).

Syntax currentUnit action ["TeamSwitch", unit]
Example
player action ["TeamSwitch", player];


TouchOff

Description Soldier 'unitOne' plays the action animation. UnitTwo's satchels are "touched off".

UnitTwo must be within range (300m) of his satchels to touch them off. See createMine for how to place explosives with script.

Syntax unitOne action ["TouchOff", unitTwo]
Example
player action ["TouchOff", player];


TurnIn / TurnOut

Description Crew of 'vehiclename' turns in/out (gets in and out of hatches).

UnitName must be a player in effective commander of vehicleName. AI will automatically turn in/out based on their current behaviour mode. Only to be used on positions that have the turnIn/turnOut capability (otherwise it breaks the cargo anim).

Syntax unit action ["TurnIn", vehicle]
unit action ["TurnOut", vehicle]
Example
TankOne action ["TurnIn", TankOne]; player action ["TurnOut", vehicle player];


UAVTerminalHackConnection

Description Hacks into given UAV. Does what "Hack UAV" UI action does.

NOTE: Player has to be in normal UI action proximity to the UAV for this action to work.

Syntax unit action ["UAVTerminalHackConnection", uav]
Where unit is any unit (enemy to the drone) and uav is the UAV to hack.
Example
player action ["UAVTerminalHackConnection", drone];


UAVTerminalMakeConnection

Description Connects player to chosen UAV. Does what "Connect terminal to UAV" UI action does.

NOTE: Player has to be in normal UI action proximity to the UAV for this action to work. To connect to far away UAV use connectTerminalToUAV command instead.

Syntax unit action ["UAVTerminalMakeConnection", uav]
Where unit is a player and uav is UAV to be connected to.
Example
player action ["UAVTerminalMakeConnection", allUnitsUAV select 0];


UAVTerminalOpen

Description Opens UAV Terminal UI. Player must have UAV Terminal item in GPS slot of inventory. Does what "Open UAV Terminal" UI action does.
Syntax unit action ["UAVTerminalOpen", unit]
Where unit is a player.
Example
player action ["UAVTerminalOpen", player];


UAVTerminalReleaseConnection

Description Disconnects player from connected UAV. Does what "Disconnect terminal from UAV" UI action does.

NOTE: Unlike with "UAVTerminalMakeConnection", player can be far away from the UAV. Notice how the passed params are swapped around for this action.

Syntax uav action ["UAVTerminalReleaseConnection", unit]
Where uav is the connected UAV and unit is the player controlling it.
Example
getConnectedUAV player action ["UAVTerminalReleaseConnection", player];

UnlockVehicleControl

Description Unlocks co-pilot controls, shows Take Control action. enableCopilot must be set true to function.
Syntax unit action ["UnlockVehicleControl", vehicle]
Where unit is any unit, and vehicle is any vehicle with co-pilot controls.
Example
player action ["UnlockVehicleControl", vehicle player];


UseMagazine

Description Loads a weapon with magazine with known id and fires that weapon. The weapon is selected based on magazine type. Details for <cr> and <id> can be found with magazinesDetail command (not 100% about <cr> but it seems 0 works for all weapons)
Syntax LOGIC action ["UseMagazine", target, magazine creator, <cr>, <id>]
Example

private _logic = createGroup west createUnit ["Logic", [0,0,0], [], 0, "NONE"]; hint str magazinesDetail player; // loaded mags not shown /*[ "6.5mm 30Rnd STANAG Mag(30/30)[id/cr:3/0]", "Smoke Round (White)(1/1)[id/cr:121/0]", "Smoke Round (White)(1/1)[id/cr:122/0]", "9mm 16Rnd Mag(16/16)[id/cr:11/0]" ]*/ _logic action ["UseMagazine", player, player, 0, 3]; // loads rifle with mag id 3 and fires _logic action ["UseMagazine", player, player, 0, 11]; // loads pistol with mag id 11 and fires from inventory _logic action ["UseMagazine", player, player, 0, 121]; // throws smoke grenade with id 121


User

Description Soldier 'unitName' does nothing. Executes the custom action with the given index of the the target unit. Indexes are based upon the order in which the actions are added to the unit. See addAction.
Syntax unitName action ["User", target unit, action index]
Example
gameLogic action ["User", player, 3];


UserType

Description As of ArmA version 1.08, using this action type will cause ArmA to crash to desktop.
Syntax unit action ["UserType", target, action index]
Example


UseWeapon

Description Soldier 'unitOne' will play the action animation. Target unit will fire the specified unit's position in the target vehicle's (can be the unit itself) weapon mode index. The indexes seem to be based upon the order in which weapons are added to the unit/vehicle, with each weapon's muzzle's fire mode having an unique index. Weapons can be fired in this way from a not-readied position (eg, firing a rifle on a soldiers back). Pistols will fire from the current weapon's proxy. It can also be used to sound the horn on AI controlled vehicles.
NOTE: If 'unitOne' is player object, the player goes into pick up animation before action is performed. If 'unitOne' is a game logic, the action is performed immediately with no animation.
Syntax unitOne action ["UseWeapon", target vehicle, target unit, weapon index]
Example
_logic = createGroup west createUnit ["Logic", [0,0,0], [], 0, "NONE"]; _logic action ["useWeapon", player, player, 0]; // player fires single shot _logic action ["useWeapon", player, player, 2]; // player fires 3 round burst _logic action ["useWeapon", player, player, 5]; // player fires pistol from inventory _logic action ["useWeapon", player, player, 7]; // player throws hand grenade _logic action ["useWeapon", car, car, 0]; // car sounds its horn // more examples gameLogic action ["useWeapon", unit1, unit1, 16]; gameLogic action ["useWeapon", vehicle unit1, unit1, 0]; gameLogic action ["useWeapon", myTank, gunner myTank, 1]; gameLogic action ["useWeapon", myTank, commander myTank, 0];


VectoringDown

Description If VTOL auto-vectoring is off, incremental forward tilt of engine nacelles.
Syntax unit action ["VectoringDown", vehicle]
Example


VectoringUp

Description If VTOL auto-vectoring is off, incremental upward tilt of engine nacelles.
Syntax unit action ["VectoringUp", vehicle]
Example


VTOLVectoring

Description Toggles off VTOL auto-vectoring (manual mode)
Syntax unit action ["VTOLVectoring", vehicle]
Example


VTOLVectoringCancel

Description Toggles on VTOL auto-vectoring (forward mode)
Syntax unit action ["VTOLVectoringCancel", vehicle]
Example


WeaponInHand / WeaponOnBack

Description Soldier 'unitName' does nothing, 'target unit' moves his weapon from/to the safety position (gun held across chest pointing at the ground).

Change is persistent with player, but AI units will change back to suit their current setBehaviour|behaviour mode. AI generally keep their rifles safe unless moving or targeting.

Syntax unitName action ["WeaponInHand", target unit]
unitName action ["WeaponOnBack", target unit]
Example
SoldierOne action ["WeaponOnBack", SoldierTwo];


WheelsBrakeOn

Description Engages wheels brakes on RTM helicopter
Syntax unit action ["WheelsBrakeOn", vehicle]
Example
player action ["WheelsBrakeOn", heli];


WheelsBrakeOff

Description Disengages wheels brakes on RTM helicopter
Syntax unit action ["WheelsBrakeOff", vehicle]
Example
player action ["WheelsBrakeOff", heli];


Unsorted actions found in UI.pbo/config.bin

LoadOtherMagazine

Description
Syntax
Example


LoadEmptyMagazine

Description
Syntax
Example


PutWeapon

Description Is alias of DropWeapon
Syntax
Example
_wh = "GroundWeaponHolder_Scripted" createVehicle position player; player action ["PutWeapon", _wh, currentWeapon player];


PutMagazine

Description is synonym for DropMagazine (same syntax)?
Syntax
Example


StartTimer

Description is synonym for SetTimer (same syntax) ?
Syntax
Example


HideWeapon

Description
Syntax unit action ["hideWeapon",<object>,<object>,<Number>]
Example


MarkWeapon

Description Something to do with campaign. Campaign param "WeaponPool" has to be enabled as well as mission param "MarkWeapons". Possibly related to "MarkEntity" action as well.
Syntax
Example


HandGunOffStand

Description
Syntax
Example


HandGunOnStand

Description
Syntax
Example


TakeDropMagazine

Description: Redundant even if works, use TakeMagazine
Syntax
Example

TakeDropWeapon

Description
Syntax
Example

Assemble

Description
Syntax
Example
_unit action ["Assemble", (nearestObject [_unit, "Tripod_Bag"])];


FirstAid

Description
Syntax
Example


GetOver

Description
Syntax
Example


GunLightOff

Description
Syntax
Example
player action ["GunLightOff", player];


GunLightOn

Description
Syntax
Example
player action ["GunLightOn", player];


IRLaserOff

Description
Syntax
Example
player action ["IRLaserOff", player];


IRLaserOn

Description
Syntax
Example
player action ["IRLaserOn", player];


OpenBag

Description Opens inventory UI with backpack of a unit (another unit). Unit must be in proximity.
Syntax unit1 action ["OpenBag", unit2];
Example player action ["OpenBag", bob];


TakeBag

Description Unit takes specified backpack from the ground.
Syntax _unit action ["TakeBag", _bag];
Example

player addEventHandler ["WeaponDisassembled", { _this spawn { _unit = _this select 0; _bag1 = _this select 1; _bag2 = _this select 2; _currBag = unitBackpack _unit; titleText ["You are not allowed to disassemble static weapons.", "PLAIN DOWN", 0.5]; _unit action ["TakeBag", _bag1]; _time = time + 3; waitUntil { unitBackpack _unit == _bag1 || time > _time }; _unit action ["Assemble", _bag2]; if (!isNull _currBag) then { _unit action ["TakeBag", _currBag] }; }; }];


Tell

Description
Syntax
Example


APUOn

Description
Syntax
Example


APUOff

Description
Syntax
Example


BatteriesOn

Description
Syntax
Example


BatteriesOff

Description
Syntax
Example


StarterOn<#>

Description StarterOn(1-3)
Syntax
Example


StarterOff<#>

Description StarterOff(1-3)
Syntax
Example


ThrottleFull<#>

Description ThrottleFull(1-3)
Syntax
Example


ThrottleIdle<#>

Description ThrottleIdle(1-3)
Syntax
Example


ThrottleOff<#>

Description ThrottleOff(1-3)
Syntax
Example


RotorBrakeOn

Description
Syntax
Example


RotorBrakeOff

Description
Syntax
Example


AIAssemble

Description
Syntax
Example


ListLeftVehicleDisplay

Description
Syntax
Example


ListRightVehicleDisplay

Description
Syntax
Example


ListPrevLeftVehicleDisplay

Description
Syntax
Example


ListPrevRightVehicleDisplay

Description
Syntax
Example


CloseLeftVehicleDisplay

Description
Syntax
Example


CloseRightVehicleDisplay

Description
Syntax
Example


NextModeLeftVehicleDisplay

Description
Syntax
Example


NextModeRightVehicleDisplay

Description
Syntax
Example


UnloadUnconsciousUnits

Description
Syntax
Example


HookCargo

Description
Syntax
Example


UnhookCargo

Description
Syntax
Example


LoadVehicle

Description
Syntax
Example


UnloadVehicle

Description
Syntax
Example


UnloadAllVehicles

Description
Syntax
Example