Difference between revisions of "Arma 3: Actions"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (tweaked intro)
m (spaces → naught)
Line 1: Line 1:
 
{{TOC|side|0.9}}
 
{{TOC|side|0.9}}
 
{{Feature|informative|
 
{{Feature|informative|
* See [[ArmA: Armed Assault: Actions]] for an introduction
+
* 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 =
  
'''''unit'' [[action]] [''"actionType"'', ''parameter(s)'']'''
+
'''''unit'' [[action]] [''"actionType"'', ''parameter(s)'']'''
  
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|''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]].
+
| ''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]].
 
|-valign=top
 
|-valign=top
|''"actionType"'':               ||[[String]]. Name of the action, found in the CfgActions class. Not case sensitive.
+
| ''"actionType"'':
 +
| [[String]]. Name of the action, found in the CfgActions class. Not case sensitive.
 
|-valign=top
 
|-valign=top
|''parameter(s)'':               ||Various [[Data_Types|data types]], dependant on the action used. The number of required parameters depends on the action type.
+
| ''parameter(s)'':
 +
| Various [[Data_Types|data types]], dependant on the action used. The number of required parameters depends on the action type.
 
|}
 
|}
  
Line 25: Line 28:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Activates the vehicle's active sensor (radar).
+
| '''Description''':
 +
| Activates the vehicle's active sensor (radar).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               || ''unit'' action ["ActiveSensorsOn", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["ActiveSensorsOn", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             || <code>[[player]] [[action]] ["ActiveSensorsOn", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["ActiveSensorsOn", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 39: Line 46:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Deactivates the vehicle's active sensor (radar).
+
| '''Description''':
 +
| Deactivates the vehicle's active sensor (radar).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               || ''unit'' action ["ActiveSensorsOff", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["ActiveSensorsOff", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             || <code>[[player]] [[action]] ["ActiveSensorsOff", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["ActiveSensorsOff", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 53: Line 64:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Causes a unit to take backpack from another unit/vehicle or weaponholder.
+
| '''Description''':
 +
| Causes a unit to take backpack from another unit/vehicle or weaponholder.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''targetUnit'' action ["AddBag", ''sourceUnit'', ''"backpackName"'']
+
| '''Syntax''':
 +
| ''targetUnit'' action ["AddBag", ''sourceUnit'', ''"backpackName"'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Examples''':
+
| '''Examples''':
|<code>soldierOne [[action]] ["AddBag", soldierTwo, [[backpack]] soldierTwo];</code>
+
| <code>soldierOne [[action]] ["AddBag", soldierTwo, [[backpack]] soldierTwo];</code>
  
 
<code>[[player]] [[action]] ["AddBag", car, [[typeOf]] [[firstBackpack]] car];</code>
 
<code>[[player]] [[action]] ["AddBag", car, [[typeOf]] [[firstBackpack]] car];</code>
Line 76: Line 91:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["ArtilleryComputer", ''artillery'']
+
| '''Syntax''':
 +
| ''unit'' action ["ArtilleryComputer", ''artillery'']
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is any unit, and ''artillery'' is the artillery weapon
+
|
 +
| Where ''unit'' is any unit, and ''artillery'' is the artillery weapon
 
|-valign=top
 
|-valign=top
|'''Example''':
+
| '''Example''':
|<code>soldierOne [[action]] ["ArtilleryComputer", mortarOne];</code>
+
| <code>soldierOne [[action]] ["ArtilleryComputer", mortarOne];</code>
 
|
 
|
 
|}
 
|}
Line 92: Line 110:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["autoHover", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["autoHover", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>chopperOne [[action]] ["autoHover", chopperOne];</code>
+
| '''Example''':
 +
| <code>chopperOne [[action]] ["autoHover", chopperOne];</code>
 
|}
 
|}
  
Line 106: Line 128:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["autoHoverCancel", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["autoHoverCancel", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>chopperOne [[action]] ["autoHoverCancel", chopperOne]</code>
+
| '''Example''':
 +
| <code>chopperOne [[action]] ["autoHoverCancel", chopperOne]</code>
 
|}
 
|}
  
Line 120: Line 146:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Moves player control back from driver/gunner position of connected UAV. Does what "Release UAV controls" UI action does.
+
| '''Description''':
 +
| Moves player control back from driver/gunner position of connected UAV. Does what "Release UAV controls" UI action does.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''uav'' action ["BackFromUAV", ''unit'']
+
| '''Syntax''':
 +
| ''uav'' action ["BackFromUAV", ''unit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[getConnectedUAV]] [[player]] [[action]] ["BackFromUAV", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[getConnectedUAV]] [[player]] [[action]] ["BackFromUAV", [[player]]];</code>
 
|}
 
|}
  
Line 134: Line 164:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Cancels an action in progress. The target unit will complete it is current animation, although the action itself will not be performed.
+
| '''Description''':
 +
| Cancels an action in progress. The target unit will complete it is current animation, although the action itself will not be performed.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["cancelAction", ''targetUnit'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["cancelAction", ''targetUnit'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["CancelAction", soldierOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["CancelAction", soldierOne];</code>
 
|}
 
|}
  
Line 148: Line 182:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Cancels autopilot landing for an aircraft, including AI controlled aircraft.
+
| '''Description''':
 +
| Cancels autopilot landing for an aircraft, including AI controlled aircraft.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["cancelLand", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["cancelLand", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>planeOne [[action]] ["cancelLand", planeOne];</code>
+
| '''Example''':
 +
| <code>planeOne [[action]] ["cancelLand", planeOne];</code>
 
|}
 
|}
  
Line 162: Line 200:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["cancelTakeFlag", ''targetFlag'']
+
| '''Syntax''':
 +
| ''unit'' action ["cancelTakeFlag", ''targetFlag'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>westSoldierOne [[action]] ["cancelTakeFlag", eastFlag];</code>
+
| '''Example''':
 +
| <code>westSoldierOne [[action]] ["cancelTakeFlag", eastFlag];</code>
 
|}
 
|}
  
Line 176: Line 218:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Turns off the collision lights of an air vehicle.
+
| '''Description''':
 +
| Turns off the collision lights of an air vehicle.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["CollisionLightOff", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["CollisionLightOff", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["CollisionLightOff", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["CollisionLightOff", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 190: Line 236:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Turns on the collision lights of an air vehicle.
+
| '''Description''':
 +
| Turns on the collision lights of an air vehicle.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["CollisionLightOn", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["CollisionLightOn", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["CollisionLightOn", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["CollisionLightOn", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 204: Line 254:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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:
 
This action also works for landmines created with [[createVehicle]] command:
Line 210: Line 261:
 
[[player]] [[action]] ["Deactivate", [[player]], mine]; //deactivate </code>
 
[[player]] [[action]] ["Deactivate", [[player]], mine]; //deactivate </code>
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["deactivate", ''targetUnit'', ''targetObject'']
+
| '''Syntax''':
 +
| ''unit'' action ["deactivate", ''targetUnit'', ''targetObject'']
 
|-valign=top
 
|-valign=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").
 
|-valign=top
 
|-valign=top
|'''Examples''':             ||<code>soldierOne [[action]] ["deactivate", soldierOne, mySatchelCharge];</code>
+
| '''Examples''':
 +
| <code>soldierOne [[action]] ["deactivate", soldierOne, mySatchelCharge];</code>
 
|-valign=top
 
|-valign=top
|                           ||<code>soldierOne [[action]] ["deactivate", soldierOne, [[nearestObject]] [soldierOne, "pipeBomb"]];</code>
+
|
 +
| <code>soldierOne [[action]] ["deactivate", soldierOne, [[nearestObject]] [soldierOne, "pipeBomb"]];</code>
 
|}
 
|}
  
Line 224: Line 279:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
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.
  
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["deactivateMine", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["deactivateMine", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["deactivateMine", soldierOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["deactivateMine", soldierOne];</code>
 
|}
 
|}
  
Line 241: Line 300:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Use and effects unknown.
+
| '''Description''':
 +
| Use and effects unknown.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["diary", ''<target>'']
+
| '''Syntax''':
 +
| ''unit'' action ["diary", ''<target>'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 255: Line 318:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Takes assembled weapon to parts (carry bags). Assembled weapon object reference may need to be kept for assembly. See also: [[enableWeaponDisassembly]]
+
| '''Description''':
 +
| Takes assembled weapon to parts (carry bags). Assembled weapon object reference may need to be kept for assembly. See also: [[enableWeaponDisassembly]]
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["Disassemble", ''weapon'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["Disassemble", ''weapon'']'''
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is any unit and ''weapon'' is assembled weapon
+
|
 +
| Where ''unit'' is any unit and ''weapon'' is assembled weapon
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["Disassemble", mortarOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["Disassemble", mortarOne];</code>
 
|}
 
|}
  
Line 269: Line 336:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''sourceUnit'' action ["DropBag", ''targetUnit'', ''"backpackName"'']
+
| '''Syntax''':
 +
| ''sourceUnit'' action ["DropBag", ''targetUnit'', ''"backpackName"'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''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).
+
| '''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).
 
|-valign=top
 
|-valign=top
|'''Examples''':
+
| '''Examples''':
|<code>soldierOne [[action]] ["DropBag", soldierTwo, [[backpack]] soldierOne];</code>
+
| <code>soldierOne [[action]] ["DropBag", soldierTwo, [[backpack]] soldierOne];</code>
  
 
<code>_gwh = "Weapon_Empty" [[createVehicle]] [[position]] [[player]];
 
<code>_gwh = "Weapon_Empty" [[createVehicle]] [[position]] [[player]];
Line 304: Line 375:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["dropMagazine", ''targetUnit'', ''"magazineName"'']
+
| '''Syntax''':
 +
| ''unit'' action ["dropMagazine", ''targetUnit'', ''"magazineName"'']
 
|-valign=top
 
|-valign=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).
 
|-valign=top
 
|-valign=top
|'''Examples''':             ||<code>soldierOne [[action]] ["dropMagazine", soldierOne, "30Rnd_545x39_AK"];</code>
+
| '''Examples''':
 +
| <code>soldierOne [[action]] ["dropMagazine", soldierOne, "30Rnd_545x39_AK"];</code>
 
|-valign=top
 
|-valign=top
|                           ||<code>soldierOne [[action]] ["dropMagazine", ammoCrateOne, "30Rnd_545x39_AK"];</code>
+
|
 +
| <code>soldierOne [[action]] ["dropMagazine", ammoCrateOne, "30Rnd_545x39_AK"];</code>
 
|}
 
|}
  
Line 320: Line 396:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["dropWeapon", ''targetHolder'', ''"weaponName"'']
+
| '''Syntax''':
 +
| ''unit'' action ["dropWeapon", ''targetHolder'', ''"weaponName"'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Examples''':             ||
+
| '''Examples''':
<code>_wh = "GroundWeaponHolder_Scripted" [[createVehicle]] [[position]] [[player]];
+
| <code>_wh = "GroundWeaponHolder_Scripted" [[createVehicle]] [[position]] [[player]];
 
[[player]] [[action]] ["DropWeapon", _wh, [[currentWeapon]] [[player]]];</code>
 
[[player]] [[action]] ["DropWeapon", _wh, [[currentWeapon]] [[player]]];</code>
 
<code>soldierOne [[action]] ["DropWeapon", [[unitBackpack]] soldierTwo, [[currentWeapon]] soldierOne];</code>
 
<code>soldierOne [[action]] ["DropWeapon", [[unitBackpack]] soldierTwo, [[currentWeapon]] soldierOne];</code>
Line 340: Line 419:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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).
+
| '''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).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["eject", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["eject", ''vehicle'']
 
|-valign=top
 
|-valign=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).
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["Eject", vehicle soldierOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["Eject", vehicle soldierOne];</code>
 
|}
 
|}
  
Line 354: Line 437:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Turns a vehicle's engine on. This command will not override an AI driver's desires.
+
| '''Description''':
 +
| Turns a vehicle's engine on. This command will not override an AI driver's desires.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["engineOn", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["engineOn", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["engineOn", vehicle soldierOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["engineOn", vehicle soldierOne];</code>
 
|}
 
|}
  
Line 368: Line 455:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Turns a vehicle's engine off. This command will not override an AI driver's desires.
+
| '''Description''':
 +
| Turns a vehicle's engine off. This command will not override an AI driver's desires.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["engineOff", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["engineOff", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["engineOff", vehicle soldierOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["engineOff", vehicle soldierOne];</code>
 
|}
 
|}
  
Line 382: Line 473:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Ignites a fireplace object (from any distance).
+
| '''Description''':
 +
| Ignites a fireplace object (from any distance).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["FireInflame", ''targetObject'']
+
| '''Syntax''':
 +
| ''unit'' action ["FireInflame", ''targetObject'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["FireInflame", firePlaceOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["FireInflame", firePlaceOne];</code>
 
|}
 
|}
  
Line 396: Line 491:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Extinguishes a fireplace object (from any distance).
+
| '''Description''':
 +
| Extinguishes a fireplace object (from any distance).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["FirePutDown", ''targetObject'']
+
| '''Syntax''':
 +
| ''unit'' action ["FirePutDown", ''targetObject'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["FirePutDown", firePlaceOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["FirePutDown", firePlaceOne];</code>
 
|}
 
|}
  
Line 410: Line 509:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Adjusts an aircraft's flaps upwards one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
+
| '''Description''':
 +
| Adjusts an aircraft's flaps upwards one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["flapsUp", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["flapsUp", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>harrierOne [[action]] ["flapsUp", harrierOne];</code>
+
| '''Example''':
 +
| <code>harrierOne [[action]] ["flapsUp", harrierOne];</code>
 
|}
 
|}
  
Line 424: Line 527:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Adjusts an aircraft's flaps down one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
+
| '''Description''':
 +
| Adjusts an aircraft's flaps down one notch. AI pilot's will instantly adjust their flaps to whatever setting they feel is suitable.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["flapsDown", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["flapsDown", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>harrierOne [[action]] ["flapsDown", harrierOne];</code>
+
| '''Example''':
 +
| <code>harrierOne [[action]] ["flapsDown", harrierOne];</code>
 
|}
 
|}
  
Line 438: Line 545:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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).
+
| '''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).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["Gear", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["Gear", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Examples''':             ||<code>[[player]] [[action]] ["Gear","GroundWeaponHolder" [[createVehicle]] [[position]] [[player]]];</code>
+
| '''Examples''':
 +
| <code>[[player]] [[action]] ["Gear","GroundWeaponHolder" [[createVehicle]] [[position]] [[player]]];</code>
 
|-valign=top
 
|-valign=top
 
|
 
|
||<code>[[player]] [[action]] ["Gear", [[objNull]]];</code>
+
| |<code>[[player]] [[action]] ["Gear", [[objNull]]];</code>
 
|-valign=top
 
|-valign=top
 
|
 
|
||<code>[[player]] [[action]] ["Gear", soldier1];</code>
+
| |<code>[[player]] [[action]] ["Gear", soldier1];</code>
 
|-valign=top
 
|-valign=top
 
|
 
|
||<code>[[player]] [[action]] ["Gear", [[cursorTarget]]];</code>
+
| |<code>[[player]] [[action]] ["Gear", [[cursorTarget]]];</code>
 
|}
 
|}
  
Line 461: Line 572:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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 <tt>[[fullCrew]] [_veh, "cargo", [[true]]]</tt> to determine which positions are compatible cargo. Alternatively, use [[moveInCargo]] command instead, which has no such limitation.
+
| '''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 <tt>[[fullCrew]] [_veh, "cargo", [[true]]]</tt> to determine which positions are compatible cargo. Alternatively, use [[moveInCargo]] command instead, which has no such limitation.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["getInCargo", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["getInCargo", ''targetVehicle'']
 
|-valign=top
 
|-valign=top
|                           ||''unit'' action ["getInCargo", ''targetVehicle'', ''positionNumber'']
+
|
 +
| ''unit'' action ["getInCargo", ''targetVehicle'', ''positionNumber'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Examples''':             ||<code>soldierOne [[action]] ["getInCargo", truckOne];</code>
+
| '''Examples''':
 +
| <code>soldierOne [[action]] ["getInCargo", truckOne];</code>
 
|-valign=top
 
|-valign=top
|                           ||<code>soldierOne [[action]] ["getInCargo", truckOne, 0];</code>
+
|
 +
| <code>soldierOne [[action]] ["getInCargo", truckOne, 0];</code>
 
|}
 
|}
  
Line 479: Line 596:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["getInCommander", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["getInCommander", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["getInCommander", tankOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["getInCommander", tankOne];</code>
 
|}
 
|}
  
Line 493: Line 614:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["getInDriver", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["getInDriver", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["getInDriver", carOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["getInDriver", carOne];</code>
 
|}
 
|}
  
Line 507: Line 632:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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|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 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]].
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["getInGunner", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["getInGunner", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["getInGunner", mySpotlight];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["getInGunner", mySpotlight];</code>
 
|}
 
|}
  
Line 521: Line 650:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || 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.
+
| '''Description''':
 +
| 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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["getInPilot", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["getInPilot", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>pilotOne [[action]] ["getInPilot", chopperOne];</code>
+
| '''Example''':
 +
| <code>pilotOne [[action]] ["getInPilot", chopperOne];</code>
 
|}
 
|}
  
Line 535: Line 668:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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|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 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]].
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["getInTurret", ''targetVehicle'', ''turretArray'']
+
| '''Syntax''':
 +
| ''unit'' action ["getInTurret", ''targetVehicle'', ''turretArray'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Examples''':             ||<code>gunnerTwo [[action]] ["getInTurret", myUH60MG, [1]];</code>
+
| '''Examples''':
 +
| <code>gunnerTwo [[action]] ["getInTurret", myUH60MG, [1]];</code>
 
|-valign=top
 
|-valign=top
|                           ||<code>tankCommanderOne [[action]] ["getInTurret", myT72, [0,1]];</code>
+
|
 +
| <code>tankCommanderOne [[action]] ["getInTurret", myT72, [0,1]];</code>
 
|}
 
|}
  
Line 551: Line 689:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Causes a person to disembark from a vehicle, without a parachute in the case of aircraft. See also [[#Eject|eject]].
+
| '''Description''':
 +
| Causes a person to disembark from a vehicle, without a parachute in the case of aircraft. See also [[#Eject|eject]].
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["getOut", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["getOut", ''targetVehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["getOut", carOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["getOut", carOne];</code>
 
|}
 
|}
  
Line 565: Line 707:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["handGunOn", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["handGunOn", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["handGunOn", soldierOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["handGunOn", soldierOne];</code>
 
|}
 
|}
  
Line 579: Line 725:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["handGunOff", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["handGunOff", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["handGunOff", soldierOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["handGunOff", soldierOne];</code>
 
|}
 
|}
  
Line 593: Line 743:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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).
+
| '''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).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["heal", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["heal", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["heal", medicOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["heal", medicOne];</code>
 
|}
 
|}
  
Line 607: Line 761:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Performs one soldier healing of another soldier. Needs to have MedKit or FAK (first aid kit) in the inventory, which gets used.
+
| '''Description''':
 +
| Performs one soldier healing of another soldier. Needs to have MedKit or FAK (first aid kit) in the inventory, which gets used.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["HealSoldier", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["HealSoldier", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>player [[action]] ["HealSoldier", soldier1];</code>
+
| '''Example''':
 +
| <code>player [[action]] ["HealSoldier", soldier1];</code>
 
|}
 
|}
  
Line 621: Line 779:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["HealSoldierSelf", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["HealSoldierSelf", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>player [[action]] ["HealSoldierSelf", soldier1];</code>
+
| '''Example''':
 +
| <code>player [[action]] ["HealSoldierSelf", soldier1];</code>
 
|}
 
|}
  
Line 635: Line 797:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["hideBody", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["hideBody", ''targetUnit'']
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is a person, and ''targetUnit'' is a dead person.
+
|
 +
| Where ''unit'' is a person, and ''targetUnit'' is a dead person.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["hideBody", soldierTwo];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["hideBody", soldierTwo];</code>
 
|}
 
|}
  
Line 649: Line 815:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Use and effects unknown.
+
| '''Description''':
 +
| Use and effects unknown.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["inGameMenu", ''<target>'']
+
| '''Syntax''':
 +
| ''unit'' action ["inGameMenu", ''<target>'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 663: Line 833:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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|ladderOff]] action is executed upon them. It may also crash ArmA (pre 1.09).
+
| '''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|ladderOff]] action is executed upon them. It may also crash ArmA (pre 1.09).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["ladderDown", ''targetObject'']
+
| '''Syntax''':
 +
| ''unit'' action ["ladderDown", ''targetObject'']
 
|-valign=top
 
|-valign=top
|                           ||''unit'' action ["ladderDown", ''targetObject'', ''ladderNumber'', ''positionNumber'']
+
|
 +
| ''unit'' action ["ladderDown", ''targetObject'', ''ladderNumber'', ''positionNumber'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["ladderDown", (position soldierOne nearestObject 452221), 0, 1];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["ladderDown", (position soldierOne nearestObject 452221), 0, 1];</code>
 
|}
 
|}
  
Line 679: Line 854:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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|ladderOff]] action is executed upon them. It may also crash ArmA (pre 1.09).
+
| '''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|ladderOff]] action is executed upon them. It may also crash ArmA (pre 1.09).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["ladderUp", ''targetObject''] '''!!!Warning!!! This syntax causes Arma 3 to freeze'''
+
| '''Syntax''':
 +
| ''unit'' action ["ladderUp", ''targetObject''] '''!!!Warning!!! This syntax causes Arma 3 to freeze'''
 
|-valign=top
 
|-valign=top
|                           ||''unit'' action ["ladderUp", ''targetObject'', ''ladderNumber'', ''positionNumber'']
+
|
 +
| ''unit'' action ["ladderUp", ''targetObject'', ''ladderNumber'', ''positionNumber'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["ladderUp", (position soldierOne nearestObject 452221), 0, 0];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["ladderUp", (position soldierOne nearestObject 452221), 0, 0];</code>
 
|}
 
|}
  
Line 695: Line 875:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["ladderOff", ''targetObject'']
+
| '''Syntax''':
 +
| ''unit'' action ["ladderOff", ''targetObject'']
 
|-valign=top
 
|-valign=top
|                           ||''unit'' action ["ladderOff", ''targetObject'', ''unknownNumber'']
+
|
 +
| ''unit'' action ["ladderOff", ''targetObject'', ''unknownNumber'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["ladderOff", (position soldierOne nearestObject 452221)];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["ladderOff", (position soldierOne nearestObject 452221)];</code>
 
|}
 
|}
  
Line 711: Line 896:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         This action appears to be identical to [[#LadderDown|LadderDown]].
+
| '''Description''': This action appears to be identical to [[#LadderDown|LadderDown]].
 
|}
 
|}
  
Line 719: Line 904:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         This action appears to be identical to [[#LadderUp|LadderUp]].
+
| '''Description''': This action appears to be identical to [[#LadderUp|LadderUp]].
 
|}
 
|}
  
Line 727: Line 912:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Turns on autopilot landing for an aircraft, including AI controlled aircraft. The aircraft will land at the closest airfield.
+
| '''Description''':
 +
| Turns on autopilot landing for an aircraft, including AI controlled aircraft. The aircraft will land at the closest airfield.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["Land", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["Land", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>planeOne [[action]] ["Land", planeOne];</code>
+
| '''Example''':
 +
| <code>planeOne [[action]] ["Land", planeOne];</code>
 
|}
 
|}
  
Line 741: Line 930:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Lowers the landing gear of an aircraft. Only works on player controlled aircraft.
+
| '''Description''':
 +
| Lowers the landing gear of an aircraft. Only works on player controlled aircraft.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["LandGear", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["LandGear", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>planeOne [[action]] ["LandGear", planeOne];</code>
+
| '''Example''':
 +
| <code>planeOne [[action]] ["LandGear", planeOne];</code>
 
|}
 
|}
  
Line 755: Line 948:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Raises the landing gear of an aircraft. Only works on player controlled aircraft.
+
| '''Description''':
 +
| Raises the landing gear of an aircraft. Only works on player controlled aircraft.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["LandGearUp", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["LandGearUp", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>planeOne [[action]] ["LandGearUp", planeOne];</code>
+
| '''Example''':
 +
| <code>planeOne [[action]] ["LandGearUp", planeOne];</code>
 
|}
 
|}
  
Line 769: Line 966:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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).
+
| '''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).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["lightOff", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["lightOff", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["lightOff", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["lightOff", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 783: Line 984:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Turns on the headlights of an empty vehicle. If vehicle is AI-controlled, see notes under the [[ArmA:_Actions#LightOff|LightOff]] action.
+
| '''Description''':
 +
| Turns on the headlights of an empty vehicle. If vehicle is AI-controlled, see notes under the [[ArmA:_Actions#LightOff|LightOff]] action.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["lightOn", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["lightOn", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["lightOn", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["lightOn", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 797: Line 1,002:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Plays a reload weapon animation.
+
| '''Description''':
 +
| Plays a reload weapon animation.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["loadMagazine", target, magazineCreator, ''number1'', ''number2'', weaponName, muzzleName]
+
| '''Syntax''':
 +
| ''unit'' action ["loadMagazine", target, magazineCreator, ''number1'', ''number2'', weaponName, muzzleName]
 
|-valign=top
 
|-valign=top
|                           ||Expects a 7 element array:
+
|
 +
| Expects a 7 element array:
 
|-valign=top
 
|-valign=top
|                           || target: [[Object]] - unit to perform the reload action.
+
|
 +
| target: [[Object]] - unit to perform the reload action.
 
|-valign=top
 
|-valign=top
|                           || magazineCreator: [[Object]] - unknown. Can be objNull.
+
|
 +
| magazineCreator: [[Object]] - unknown. Can be objNull.
 
|-valign=top
 
|-valign=top
|                           || ''number1'': [[Number]] - cr - see [[magazinesDetail]]. For characters it is mainly 0
+
|
 +
| ''number1'': [[Number]] - cr - see [[magazinesDetail]]. For characters it is mainly 0
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|                           || muzzleName: [[String]] - weapon's muzzle to reload.
+
|
 +
| muzzleName: [[String]] - weapon's muzzle to reload.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["loadmagazine", [[player]], [[player]], 0, 1 ,"vbs2_us_m16a2_iron_gla", "vbs2_us_m16a2_iron_gla"];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["loadmagazine", [[player]], [[player]], 0, 1 ,"vbs2_us_m16a2_iron_gla", "vbs2_us_m16a2_iron_gla"];</code>
 
|}
 
|}
  
Line 823: Line 1,038:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Locks co-pilot controls, removes [[Arma_3:_Actions#TakeVehicleControl|Take Control]] action. [[enableCopilot]] must be set true to function.
+
| '''Description''':
 +
| Locks co-pilot controls, removes [[Arma_3:_Actions#TakeVehicleControl|Take Control]] action. [[enableCopilot]] must be set true to function.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["LockVehicleControl", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["LockVehicleControl", ''vehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["LockVehicleControl", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["LockVehicleControl", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 837: Line 1,056:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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]])
+
| '''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]])
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["manualFire", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["manualFire", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["ManualFire", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["ManualFire", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 851: Line 1,074:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Disables manual fire mode for a player unit that is driver or commander of a vehicle. (See also [[isManualFire]])
+
| '''Description''':
 +
| Disables manual fire mode for a player unit that is driver or commander of a vehicle. (See also [[isManualFire]])
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["manualFireCancel", ''targetVehicle'']'''
+
| '''Syntax''':
 +
| ''unit'' action ["manualFireCancel", ''targetVehicle'']'''
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["manualFireCancel", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["manualFireCancel", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 865: Line 1,092:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Use and effects unknown. Same as [[Arma_3_Actions#MarkWeapon]] action.
+
| '''Description''':
 +
| Use and effects unknown. Same as [[Arma_3_Actions#MarkWeapon]] action.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["markEntity", <target>]
+
| '''Syntax''':
 +
| ''unit'' action ["markEntity", <target>]
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 879: Line 1,110:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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 <tt>[[fullCrew]] [_veh, "cargo", [[true]]]</tt> to determine which positions are compatible cargo.
+
| '''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 <tt>[[fullCrew]] [_veh, "cargo", [[true]]]</tt> to determine which positions are compatible cargo.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["moveToCargo", ''targetVehicle'', ''cargoPosition'']
+
| '''Syntax''':
 +
| ''unit'' action ["moveToCargo", ''targetVehicle'', ''cargoPosition'']
 
|-valign=top
 
|-valign=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).
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["moveToCargo", [[vehicle]] [[player]], 2];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["moveToCargo", [[vehicle]] [[player]], 2];</code>
 
|}
 
|}
  
Line 893: Line 1,128:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["moveToCommander", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["moveToCommander", ''targetVehicle'']
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is a unit within ''targetVehicle''.
+
|
 +
| Where ''unit'' is a unit within ''targetVehicle''.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["moveToCommander", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["moveToCommander", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 907: Line 1,146:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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).
+
| '''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).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["moveToDriver", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["moveToDriver", ''targetVehicle'']
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is a unit within ''targetVehicle''.
+
|
 +
| Where ''unit'' is a unit within ''targetVehicle''.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["moveToDriver", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["moveToDriver", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 921: Line 1,164:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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|moveToTurret]].
+
| '''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|moveToTurret]].
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["moveToGunner", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["moveToGunner", ''targetVehicle'']
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is a unit within ''targetVehicle''.
+
|
 +
| Where ''unit'' is a unit within ''targetVehicle''.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["moveToGunner", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["moveToGunner", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 935: Line 1,182:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         Identical to [[#MoveToDriver|moveToDriver]].
+
| '''Description''': Identical to [[#MoveToDriver|moveToDriver]].
 
|}
 
|}
  
Line 943: Line 1,190:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["moveToTurret", ''targetVehicle'', ''turretArray'']
+
| '''Syntax''':
 +
| ''unit'' action ["moveToTurret", ''targetVehicle'', ''turretArray'']
 
|-valign=top
 
|-valign=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).
 
|-valign=top
 
|-valign=top
|'''Examples''':             ||<code>[[player]] [[action]] ["moveToTurret", [[vehicle]] [[player]], [0]];</code>
+
| '''Examples''':
 +
| <code>[[player]] [[action]] ["moveToTurret", [[vehicle]] [[player]], [0]];</code>
 
|-valign=top
 
|-valign=top
|                           ||<code>[[player]] [[action]] ["moveToTurret", [[vehicle]] [[player]], [0,1]];</code>
+
|
 +
| <code>[[player]] [[action]] ["moveToTurret", [[vehicle]] [[player]], [0,1]];</code>
 
|}
 
|}
  
Line 959: Line 1,211:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Use and effects unknown.
+
| '''Description''':
 +
| Use and effects unknown.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["none", ''<target>'']
+
| '''Syntax''':
 +
| ''unit'' action ["none", ''<target>'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 973: Line 1,229:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["nvGoggles", ''<anything>'']
+
| '''Syntax''':
 +
| ''unit'' action ["nvGoggles", ''<anything>'']
 
|-valign=top
 
|-valign=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).
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["nvGoggles", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["nvGoggles", [[player]]];</code>
 
|}
 
|}
  
Line 987: Line 1,247:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["nvGogglesOff", ''<anything>'']
+
| '''Syntax''':
 +
| ''unit'' action ["nvGogglesOff", ''<anything>'']
 
|-valign=top
 
|-valign=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).
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["nvGogglesOff", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["nvGogglesOff", [[player]]];</code>
 
|}
 
|}
  
Line 1,001: Line 1,265:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Opens unit's parachute. Unit must have parachute backpack.
+
| '''Description''':
 +
| Opens unit's parachute. Unit must have parachute backpack.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["OpenParachute", ''unit'']
+
| '''Syntax''':
 +
| ''unit'' action ["OpenParachute", ''unit'']
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is the unit with parachute backpack.
+
|
 +
| Where ''unit'' is the unit with parachute backpack.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["OpenParachute", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["OpenParachute", [[player]]];</code>
 
|}
 
|}
  
Line 1,015: Line 1,283:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''sourceUnit'' action ["PutBag", ''targetUnit'']
+
| '''Syntax''':
 +
| ''sourceUnit'' action ["PutBag", ''targetUnit'']
 
|-valign=top
 
|-valign=top
|                           ||''targetUnit'' is optional
+
|
 +
| ''targetUnit'' is optional
 
|-valign=top
 
|-valign=top
|'''Note''':                 || To pick the backpack from the ground use "AddBag" action.
+
| '''Note''':
 +
| To pick the backpack from the ground use "AddBag" action.
 
|-valign=top
 
|-valign=top
|'''Examples''':
+
| '''Examples''':
|<code>[[player]] [[action]] ["PutBag"];
+
| <code>[[player]] [[action]] ["PutBag"];
 
unit1 [[action]] ["PutBag", unit2];</code>
 
unit1 [[action]] ["PutBag", unit2];</code>
 
|
 
|
Line 1,034: Line 1,306:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["rearm", ''reamingObject'']
+
| '''Syntax''':
 +
| ''unit'' action ["rearm", ''reamingObject'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Examples''':             ||<code>tankOne [[action]] ["rearm", ammoTruckOne]</code>
+
| '''Examples''':
 +
| <code>tankOne [[action]] ["rearm", ammoTruckOne]</code>
 
|-valign=top
 
|-valign=top
|                           ||<code>soldierOne [[action]] ["rearm", ammoTruckOne];</code>
+
|
 +
| <code>soldierOne [[action]] ["rearm", ammoTruckOne];</code>
 
|}
 
|}
  
Line 1,050: Line 1,327:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''vehicle'' action ["refuel", ''refuelingObject'']
+
| '''Syntax''':
 +
| ''vehicle'' action ["refuel", ''refuelingObject'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>tankOne [[action]] ["refuel", refuelTruckOne];</code>
+
| '''Example''':
 +
| <code>tankOne [[action]] ["refuel", refuelTruckOne];</code>
 
|}
 
|}
  
Line 1,064: Line 1,345:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''vehicle'' action ["repair", ''repairingObject'']
+
| '''Syntax''':
 +
| ''vehicle'' action ["repair", ''repairingObject'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>tankOne [[action]] ["repair", repairTruckOne];</code>
+
| '''Example''':
 +
| <code>tankOne [[action]] ["repair", repairTruckOne];</code>
 
|}
 
|}
  
Line 1,078: Line 1,363:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["returnFlag", ''targetObject'']
+
| '''Syntax''':
 +
| ''unit'' action ["returnFlag", ''targetObject'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["returnFlag", westFlag];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["returnFlag", westFlag];</code>
 
|}
 
|}
  
  
 
== RepairVehicle ==
 
== RepairVehicle ==
 
'''OA only. Required version 1.54.'''
 
  
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["repairVehicle", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["repairVehicle", ''vehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>engineerOne [[action]] ["repairVehicle", truckOne];</code>
+
| '''Example''':
 +
| <code>engineerOne [[action]] ["repairVehicle", truckOne];</code>
 
|}
 
|}
  
Line 1,108: Line 1,399:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["salute", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["salute", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["salute", soldierOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["salute", soldierOne];</code>
 
|}
 
|}
  
Line 1,122: Line 1,417:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
+
| '''Description''':
 +
| There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["scudCancel", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["scudCancel", ''targetVehicle'']
 
|-valign=top
 
|-valign=top
|                           ||Syntax unknown.
+
|
 +
| Syntax unknown.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,136: Line 1,435:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
+
| '''Description''':
 +
| There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["scudLaunch", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["scudLaunch", ''targetVehicle'']
 
|-valign=top
 
|-valign=top
|                           ||Syntax unknown.
+
|
 +
| Syntax unknown.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,150: Line 1,453:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
+
| '''Description''':
 +
| There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["scudStart", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["scudStart", ''targetVehicle'']
 
|-valign=top
 
|-valign=top
|                           ||Syntax unknown.
+
|
 +
| Syntax unknown.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,164: Line 1,471:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || 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.
+
| '''Description''':
 +
| 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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["SearchlightOff", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["SearchlightOff", ''vehicle'']
 
|-valign=top
 
|-valign=top
|'''Example''':             || hellcatCopilot action ["SearchlightOff", vehicle hellcatCopilot]
+
| '''Example''':
 +
| hellcatCopilot action ["SearchlightOff", vehicle hellcatCopilot]
 
|}
 
|}
  
Line 1,176: Line 1,486:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || 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.
+
| '''Description''':
 +
| 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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["SearchlightOn", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["SearchlightOn", ''vehicle'']
 
|-valign=top
 
|-valign=top
|'''Example''':             |hellcatCopilot action ["SearchlightOn", vehicle hellcatCopilot]
+
| '''Example''':
 +
| hellcatCopilot action ["SearchlightOn", vehicle hellcatCopilot]
 
|}
 
|}
  
Line 1,188: Line 1,501:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
Charge has to be placed first using ''unitname [[Fire]] ["pipebombmuzzle", "pipebombmuzzle", "pipebomb"]'' or [[createMine]] command.
  
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unitOne'' action ["SetTimer", ''unitTwo'', ''bombName'']
+
| '''Syntax''':
 +
| ''unitOne'' action ["SetTimer", ''unitTwo'', ''bombName'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,204: Line 1,521:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["sitDown", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["sitDown", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["sitDown", soldierOne];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["sitDown", soldierOne];</code>
 
|}
 
|}
  
Line 1,218: Line 1,539:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Does nothing. There is no punch animation in ArmA, however this action (presumably) remains in the engine from the days of Operation Flashpoint.
+
| '''Description''':
 +
| Does nothing. There is no punch animation in ArmA, however this action (presumably) remains in the engine from the days of Operation Flashpoint.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["strokeFist", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["strokeFist", ''targetVehicle'']
 
|-valign=top
 
|-valign=top
|                           ||Syntax unknown.
+
|
 +
| Syntax unknown.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,232: Line 1,557:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["strokeGun", ''targetVehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["strokeGun", ''targetVehicle'']
 
|-valign=top
 
|-valign=top
|                           ||Syntax unknown.
+
|
 +
| Syntax unknown.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,246: Line 1,575:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["Surrender", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["Surrender", ''targetUnit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["Surrender", soldierTwo];</code>
+
| '''Example''':
 +
| <code>soldierOne [[action]] ["Surrender", soldierTwo];</code>
 
|}
 
|}
  
Line 1,260: Line 1,593:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Release vehicle controls from co-pilot. Control immediately returns to pilot.
+
| '''Description''':
 +
| Release vehicle controls from co-pilot. Control immediately returns to pilot.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["SuspendVehicleControl", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["SuspendVehicleControl", ''vehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["SuspendVehicleControl", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["SuspendVehicleControl", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 1,274: Line 1,611:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["SwitchMagazine", ''targetVehicle'', ''targetUnit'', ''mode index'']
+
| '''Syntax''':
 +
| ''unit'' action ["SwitchMagazine", ''targetVehicle'', ''targetUnit'', ''mode index'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>gameLogic [[action]] ["SwitchMagazine", unit1, unit1, 3];
+
| '''Example''':
 +
| <code>gameLogic [[action]] ["SwitchMagazine", unit1, unit1, 3];
 
gameLogic [[action]] ["SwitchMagazine", m1a1, [[gunner]] m1a1, 1];</code>
 
gameLogic [[action]] ["SwitchMagazine", m1a1, [[gunner]] m1a1, 1];</code>
 
|}
 
|}
Line 1,291: Line 1,633:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["SwitchWeapon", ''targetUnit'', ''targetUnit'', ''muzzle index'']
+
| '''Syntax''':
 +
| ''unit'' action ["SwitchWeapon", ''targetUnit'', ''targetUnit'', ''muzzle index'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':
+
| '''Example''':
|<code>unit2 [[action]] ["SwitchWeapon", unit1, unit1, 7];
+
| <code>unit2 [[action]] ["SwitchWeapon", unit1, unit1, 7];
 
[[player]] [[action]] ["SwitchWeapon", [[player]], [[player]], 3]; // switching personal weapon
 
[[player]] [[action]] ["SwitchWeapon", [[player]], [[player]], 3]; // switching personal weapon
 
[[player]] [[action]] ["SwitchWeapon", [[vehicle]] [[player]], [[player]], 3]; // switching vehicle weapon</code>
 
[[player]] [[action]] ["SwitchWeapon", [[vehicle]] [[player]], [[player]], 3]; // switching vehicle weapon</code>
 
|-valign=top
 
|-valign=top
 
|
 
|
|<code>[[player]] [[action]] ["SwitchWeapon", [[player]], [[player]], weaponIndex];</code>
+
| <code>[[player]] [[action]] ["SwitchWeapon", [[player]], [[player]], weaponIndex];</code>
 
Result => weaponIndex: [[weaponState]] for "B_soldier_LAT_F"
 
Result => weaponIndex: [[weaponState]] for "B_soldier_LAT_F"
  
Line 1,342: Line 1,687:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Moves player control into driver position of connected UAV. Does what "Take UAV controls" UI action does.
+
| '''Description''':
 +
| Moves player control into driver position of connected UAV. Does what "Take UAV controls" UI action does.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["SwitchToUAVDriver", ''uav'']
+
| '''Syntax''':
 +
| ''unit'' action ["SwitchToUAVDriver", ''uav'']
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is a player and ''uav'' is the connected UAV.
+
|
 +
| Where ''unit'' is a player and ''uav'' is the connected UAV.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["SwitchToUAVDriver", [[getConnectedUAV]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["SwitchToUAVDriver", [[getConnectedUAV]] [[player]]];</code>
 
|}
 
|}
  
Line 1,356: Line 1,705:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Moves player control into gunner position of connected UAV. Does what "Take UAV turret controls" UI action does.
+
| '''Description''':
 +
| Moves player control into gunner position of connected UAV. Does what "Take UAV turret controls" UI action does.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["SwitchToUAVGunner", ''uav'']
+
| '''Syntax''':
 +
| ''unit'' action ["SwitchToUAVGunner", ''uav'']
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is a player and ''uav'' is the connected UAV.
+
|
 +
| Where ''unit'' is a player and ''uav'' is the connected UAV.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["SwitchToUAVGunner", [[getConnectedUAV]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["SwitchToUAVGunner", [[getConnectedUAV]] [[player]]];</code>
 
|}
 
|}
  
Line 1,370: Line 1,723:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Soldier 'unitname' takes control of 'flag1'. He must be close to the flagpole and it must belong to an enemy side.
+
| '''Description''':
 +
| Soldier 'unitname' takes control of 'flag1'. He must be close to the flagpole and it must belong to an enemy side.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["TakeFlag", ''flag1'']
+
| '''Syntax''':
 +
| ''unit'' action ["TakeFlag", ''flag1'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["TakeFlag", FlagOne];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["TakeFlag", FlagOne];</code>
 
|}
 
|}
  
Line 1,383: Line 1,740:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Soldier 'unitname' takes one magazine/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 or magazine' is.
+
| '''Description''':
 +
| Soldier 'unitname' takes one magazine/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 or magazine' is.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["TakeMagazine", ''vehicle'', ''magazineName'']
+
| '''Syntax''':
 +
| ''unit'' action ["TakeMagazine", ''vehicle'', ''magazineName'']
 
|-valign=top
 
|-valign=top
|                           ||''unit'' action ["TakeWeapon", ''vehicle'', ''weaponName'']
+
|
 +
| ''unit'' action ["TakeWeapon", ''vehicle'', ''weaponName'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["TakeMagazine", SoldierTwo, "RPGLauncher"];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["TakeMagazine", SoldierTwo, "RPGLauncher"];</code>
 
|}
 
|}
  
Line 1,399: Line 1,761:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["TakeMine", ''targetUnit'']
+
| '''Syntax''':
 +
| ''unit'' action ["TakeMine", ''targetUnit'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["TakeMine", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["TakeMine", [[player]]];</code>
 
|}
 
|}
  
Line 1,413: Line 1,779:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||In case of a helicopter, copilot will take flying controls, even if [[enableCopilot]] is disabled and [[isCopilotEnabled]] is [[false]].
+
| '''Description''':
|                            ||Use [[Arma_3:_Actions#SuspendVehicleControl|SuspendVehicleControl]] action to release control.
+
| In case of a helicopter, copilot will take flying controls, even if [[enableCopilot]] is disabled and [[isCopilotEnabled]] is [[false]].<br>
 +
| Use [[Arma_3:_Actions#SuspendVehicleControl|SuspendVehicleControl]] action to release control.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["TakeVehicleControl", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["TakeVehicleControl", ''vehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["TakeVehicleControl", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["TakeVehicleControl", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 1,428: Line 1,798:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Use and effects unknown.
+
| '''Description''':
 +
| Use and effects unknown.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["Talk", ''target'']
+
| '''Syntax''':
 +
| ''unit'' action ["Talk", ''target'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,442: Line 1,816:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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).
+
| '''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).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''currentUnit'' action ["TeamSwitch", ''unit'']
+
| '''Syntax''':
 +
| ''currentUnit'' action ["TeamSwitch", ''unit'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["TeamSwitch", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["TeamSwitch", [[player]]];</code>
 
|}
 
|}
  
Line 1,456: Line 1,836:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.      ||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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unitOne'' action ["TouchOff", ''unitTwo'']
+
| '''Syntax''':
 +
| ''unitOne'' action ["TouchOff", ''unitTwo'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["TouchOff", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["TouchOff", [[player]]];</code>
 
|}
 
|}
  
Line 1,469: Line 1,854:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.).
+
| '''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).
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["TurnIn", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["TurnIn", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||''unit'' action ["TurnOut", ''vehicle'']
+
|
 +
| ''unit'' action ["TurnOut", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>TankOne [[action]] ["TurnIn", TankOne];
+
| '''Example''':
 +
| <code>TankOne [[action]] ["TurnIn", TankOne];
 
[[player]] [[action]] ["TurnOut", [[vehicle]] [[player]]];</code>
 
[[player]] [[action]] ["TurnOut", [[vehicle]] [[player]]];</code>
 
|}
 
|}
Line 1,486: Line 1,878:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || Hacks into given UAV. Does what "Hack UAV" UI action does.
+
| '''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.
 
'''NOTE''': Player has to be in normal UI action proximity to the UAV for this action to work.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               || ''unit'' action ["UAVTerminalHackConnection", ''uav'']
+
| '''Syntax''':
 +
| ''unit'' action ["UAVTerminalHackConnection", ''uav'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             || <code>[[player]] [[action]] ["UAVTerminalHackConnection", drone];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["UAVTerminalHackConnection", drone];</code>
 
|}
 
|}
  
Line 1,502: Line 1,898:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Connects player to chosen UAV. Does what "Connect terminal to UAV" UI action does.
+
| '''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.
+
'''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["UAVTerminalMakeConnection", ''uav'']
+
| '''Syntax''':
 +
| ''unit'' action ["UAVTerminalMakeConnection", ''uav'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["UAVTerminalMakeConnection", [[allUnitsUAV]] [[select]] 0];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["UAVTerminalMakeConnection", [[allUnitsUAV]] [[select]] 0];</code>
 
|}
 
|}
  
Line 1,518: Line 1,919:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Opens UAV Terminal UI. Player must have UAV Terminal item in GPS slot of inventory. Does what "Open UAV Terminal" UI action does.
+
| '''Description''':
 +
| Opens UAV Terminal UI. Player must have UAV Terminal item in GPS slot of inventory. Does what "Open UAV Terminal" UI action does.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["UAVTerminalOpen", ''unit'']
+
| '''Syntax''':
 +
| ''unit'' action ["UAVTerminalOpen", ''unit'']
 
|-valign=top
 
|-valign=top
|                           ||Where ''unit'' is a player.
+
|
 +
| Where ''unit'' is a player.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["UAVTerminalOpen", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["UAVTerminalOpen", [[player]]];</code>
 
|}
 
|}
  
Line 1,532: Line 1,937:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Disconnects player from connected UAV. Does what "Disconnect terminal from UAV" UI action does.
+
| '''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.
 
'''NOTE''': Unlike with "UAVTerminalMakeConnection", player can be far away from the UAV. Notice how the passed params are swapped around for this action.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''uav'' action ["UAVTerminalReleaseConnection", ''unit'']
+
| '''Syntax''':
 +
| ''uav'' action ["UAVTerminalReleaseConnection", ''unit'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[getConnectedUAV]] [[player]] [[action]] ["UAVTerminalReleaseConnection", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[getConnectedUAV]] [[player]] [[action]] ["UAVTerminalReleaseConnection", [[player]]];</code>
 
|}
 
|}
  
Line 1,548: Line 1,957:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Unlocks co-pilot controls, shows [[Arma_3:_Actions#TakeVehicleControl|Take Control]] action. [[enableCopilot]] must be set true to function.
+
| '''Description''':
 +
| Unlocks co-pilot controls, shows [[Arma_3:_Actions#TakeVehicleControl|Take Control]] action. [[enableCopilot]] must be set true to function.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["UnlockVehicleControl", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["UnlockVehicleControl", ''vehicle'']
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["UnlockVehicleControl", [[vehicle]] [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["UnlockVehicleControl", [[vehicle]] [[player]]];</code>
 
|}
 
|}
  
Line 1,562: Line 1,975:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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)
+
| '''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)
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''LOGIC'' action ["UseMagazine", ''target'', ''magazine creator'', ''<cr>'', ''<id>'']
+
| '''Syntax''':
 +
| ''LOGIC'' action ["UseMagazine", ''target'', ''magazine creator'', ''<cr>'', ''<id>'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
<code>_logic = [[createGroup]] [[west]] [[createUnit]] ["Logic", [0,0,0], [], 0, "NONE"];
+
| <code><nowiki>_logic = createGroup west createUnit ["Logic", [0,0,0], [], 0, "NONE"];
[[hint]] [[str]] [[magazinesDetail]] [[player]]; {{cc|loaded mags not shown}}
+
hint str magazinesDetail player; {{cc|loaded mags not shown}}
 
{{codecomment|/*[
 
{{codecomment|/*[
 
"6.5mm 30Rnd STANAG Mag(30/30)[id/cr:3/0]",
 
"6.5mm 30Rnd STANAG Mag(30/30)[id/cr:3/0]",
Line 1,577: Line 1,993:
 
"9mm 16Rnd Mag(16/16)[id/cr:11/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, 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, 11]; //loads pistol with mag id 11 and fires from inventory
_logic [[action]] ["UseMagazine", [[player]], [[player]], 0, 121]; //throws smoke grenade with id 121</code>
+
_logic action ["UseMagazine", player, player, 0, 121]; //throws smoke grenade with id 121</nowiki></code>
 
|}
 
|}
  
Line 1,587: Line 2,003:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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]].
+
| '''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]].
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unitName'' action ["User", ''target unit'', ''action index'']
+
| '''Syntax''':
 +
| ''unitName'' action ["User", ''target unit'', ''action index'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>gameLogic [[action]] ["User", [[player]], 3];</code>
+
| '''Example''':
 +
| <code>gameLogic [[action]] ["User", [[player]], 3];</code>
 
|}
 
|}
  
Line 1,601: Line 2,021:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||As of ArmA version 1.08, using this action type will cause ArmA to crash to desktop.
+
| '''Description''':
 +
| As of ArmA version 1.08, using this action type will cause ArmA to crash to desktop.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["UserType", ''target'', ''action index'']
+
| '''Syntax''':
 +
| ''unit'' action ["UserType", ''target'', ''action index'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,615: Line 2,039:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unitOne'' action ["UseWeapon", ''target vehicle'', ''target unit'', ''weapon index'']
+
| '''Syntax''':
 +
| ''unitOne'' action ["UseWeapon", ''target vehicle'', ''target unit'', ''weapon index'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
<code>_logic = [[createGroup]] [[west]] [[createUnit]] ["Logic", [0,0,0], [], 0, "NONE"];
+
| <code><nowiki>_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, 0]; // player fires single shot
_logic [[action]] ["useWeapon", [[player]], [[player]], 2]; //player fires 3 round burst
+
_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, 5]; // player fires pistol from inventory
_logic [[action]] ["useWeapon", [[player]], [[player]], 7]; //player throws hand grenade
+
_logic action ["useWeapon", player, player, 7]; // player throws hand grenade
_logic [[action]] ["useWeapon", car, car, 0]; //car sounds its horn
+
_logic action ["useWeapon", car, car, 0]; // car sounds its horn
//more examples
+
// more examples
gameLogic [[action]] ["useWeapon", unit1, unit1,16];
+
gameLogic action ["useWeapon", unit1, unit1, 16];
gameLogic [[action]] ["useWeapon", [[vehicle]] unit1, unit1, 0];
+
gameLogic action ["useWeapon", vehicle unit1, unit1, 0];
gameLogic [[action]] ["useWeapon", myTank, [[gunner]] myTank, 1];
+
gameLogic action ["useWeapon", myTank, gunner myTank, 1];
gameLogic [[action]] ["useWeapon", myTank, [[commander]] myTank, 0];</code>
+
gameLogic action ["useWeapon", myTank, commander myTank, 0];</nowiki></code>
 
|}
 
|}
  
Line 1,642: Line 2,070:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || If VTOL auto-vectoring is off, incremental forward tilt of engine nacelles.
+
| '''Description''':
 +
| If VTOL auto-vectoring is off, incremental forward tilt of engine nacelles.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["VectoringDown", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["VectoringDown", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,656: Line 2,088:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || If VTOL auto-vectoring is off, incremental upward tilt of engine nacelles.
+
| '''Description''':
 +
| If VTOL auto-vectoring is off, incremental upward tilt of engine nacelles.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["VectoringUp", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["VectoringUp", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,670: Line 2,106:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Toggles '''off''' VTOL auto-vectoring (manual mode)
+
| '''Description''':
 +
| Toggles '''off''' VTOL auto-vectoring (manual mode)
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["VTOLVectoring", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["VTOLVectoring", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,684: Line 2,124:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Toggles '''on''' VTOL auto-vectoring (forward mode)
+
| '''Description''':
 +
| Toggles '''on''' VTOL auto-vectoring (forward mode)
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["VTOLVectoringCancel", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["VTOLVectoringCancel", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,697: Line 2,141:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Soldier 'unitName' does nothing, 'target unit' moves his weapon from/to the safety position (gun held across chest pointing at the ground).
+
| '''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.<br>
 
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.<br>
 
(''VBS2 calls this action "PutWeaponOnBack"'')
 
(''VBS2 calls this action "PutWeaponOnBack"'')
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unitName'' action ["WeaponInHand", ''target unit'']
+
| '''Syntax''':
 +
| ''unitName'' action ["WeaponInHand", ''target unit'']
 
|-valign=top
 
|-valign=top
|                           ||''unitName'' action ["WeaponOnBack", ''target unit'']
+
|
 +
| ''unitName'' action ["WeaponOnBack", ''target unit'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>SoldierOne [[action]] ["WeaponOnBack", SoldierTwo]</code>
+
| '''Example''':
 +
| <code>SoldierOne [[action]] ["WeaponOnBack", SoldierTwo]</code>
 
|}
 
|}
  
Line 1,715: Line 2,164:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Engages wheels brakes on RTM helicopter
+
| '''Description''':
 +
| Engages wheels brakes on RTM helicopter
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["WheelsBrakeOn", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["WheelsBrakeOn", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["WheelsBrakeOn", heli];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["WheelsBrakeOn", heli];</code>
 
|}
 
|}
  
Line 1,729: Line 2,182:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Disengages wheels brakes on RTM helicopter
+
| '''Description''':
 +
| Disengages wheels brakes on RTM helicopter
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||''unit'' action ["WheelsBrakeOff", ''vehicle'']
+
| '''Syntax''':
 +
| ''unit'' action ["WheelsBrakeOff", ''vehicle'']
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["WheelsBrakeOff", heli];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["WheelsBrakeOff", heli];</code>
 
|}
 
|}
  
Line 1,746: Line 2,203:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,760: Line 2,221:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,774: Line 2,239:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Is alias of DropWeapon
+
| '''Description''':
 +
| Is alias of DropWeapon
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
<code>_wh = "GroundWeaponHolder_Scripted" [[createVehicle]] [[position]] [[player]];
+
| <code>_wh = "GroundWeaponHolder_Scripted" [[createVehicle]] [[position]] [[player]];
 
[[player]] [[action]] ["PutWeapon", _wh, [[currentWeapon]] [[player]]];</code>
 
[[player]] [[action]] ["PutWeapon", _wh, [[currentWeapon]] [[player]]];</code>
 
|}
 
|}
Line 1,790: Line 2,258:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||is synonym for DropMagazine (same syntax)?
+
| '''Description''':
 +
| is synonym for DropMagazine (same syntax)?
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,804: Line 2,276:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||is synonym for SetTimer (same syntax) ?
+
| '''Description''':
 +
| is synonym for SetTimer (same syntax) ?
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,818: Line 2,294:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||unit action ["hideWeapon",<object>,<object>,<Number>]
+
| '''Syntax''':
 +
| unit action ["hideWeapon",<object>,<object>,<Number>]
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,832: Line 2,312:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''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.
+
| '''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.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,846: Line 2,330:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,860: Line 2,348:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,874: Line 2,366:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,888: Line 2,384:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||OA only.
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>_unit [[action]] ["Assemble", (nearestObject [_unit, "Tripod_Bag"])];</code>
+
| '''Example''':
 +
| <code>_unit [[action]] ["Assemble", (nearestObject [_unit, "Tripod_Bag"])];</code>
 
|}
 
|}
  
Line 1,902: Line 2,402:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,916: Line 2,420:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 1,930: Line 2,438:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["GunLightOff", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["GunLightOff", [[player]]];</code>
 
|}
 
|}
  
Line 1,944: Line 2,456:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["GunLightOn", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["GunLightOn", [[player]]];</code>
 
|}
 
|}
  
Line 1,958: Line 2,474:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["IRLaserOff", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["IRLaserOff", [[player]]];</code>
 
|}
 
|}
  
Line 1,972: Line 2,492:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||<code>[[player]] [[action]] ["IRLaserOn", [[player]]];</code>
+
| '''Example''':
 +
| <code>[[player]] [[action]] ["IRLaserOn", [[player]]];</code>
 
|}
 
|}
  
Line 1,986: Line 2,510:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Opens inventory UI with backpack of a unit (another unit). Unit must be in proximity.
+
| '''Description''':
 +
| Opens inventory UI with backpack of a unit (another unit). Unit must be in proximity.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||unit1 action ["OpenBag", unit2];
+
| '''Syntax''':
 +
| unit1 action ["OpenBag", unit2];
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||player action ["OpenBag", bob];
+
| '''Example''':
 +
| player action ["OpenBag", bob];
 
|}
 
|}
  
Line 2,000: Line 2,528:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||Unit takes specified backpack from the ground.
+
| '''Description''':
 +
| Unit takes specified backpack from the ground.
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||_unit action ["TakeBag", _bag];
+
| '''Syntax''':
 +
| _unit action ["TakeBag", _bag];
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
<code>player addEventHandler ["WeaponDisassembled",
+
| <code><nowiki>player addEventHandler ["WeaponDisassembled",
 
{
 
{
_this spawn
+
_this spawn {
{
 
 
_unit = _this select 0;
 
_unit = _this select 0;
 
_bag1 = _this select 1;
 
_bag1 = _this select 1;
_bag2 = _this select 2;<br>
+
_bag2 = _this select 2;
_currBag = unitBackpack _unit;<br>
+
 
titleText ["You are not allowed to disassemble static weapons.", "PLAIN DOWN", 0.5];<br>
+
_currBag = unitBackpack _unit;
_unit action ["TakeBag", _bag1];<br>
+
titleText ["You are not allowed to disassemble static weapons.", "PLAIN DOWN", 0.5];
 +
_unit action ["TakeBag", _bag1];
 +
 
 
_time = time;
 
_time = time;
waitUntil {unitBackpack _unit == _bag1 || time - _time > 3};<br>
+
waitUntil {unitBackpack _unit == _bag1 || time - _time > 3};
 +
 
 
_unit action ["Assemble", _bag2];<br>
 
_unit action ["Assemble", _bag2];<br>
 
if (!isNull _currBag) then { _unit action ["TakeBag", _currBag] };
 
if (!isNull _currBag) then { _unit action ["TakeBag", _currBag] };
 
};
 
};
}];</code>
+
}];</nowiki></code>
 
|}
 
|}
  
Line 2,030: Line 2,563:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,044: Line 2,581:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,058: Line 2,599:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,072: Line 2,617:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,086: Line 2,635:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,100: Line 2,653:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || StarterOn(1-3)
+
| '''Description''':
 +
| StarterOn(1-3)
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,114: Line 2,671:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || StarterOff(1-3)
+
| '''Description''':
 +
| StarterOff(1-3)
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,128: Line 2,689:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || ThrottleFull(1-3)
+
| '''Description''':
 +
| ThrottleFull(1-3)
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,142: Line 2,707:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || ThrottleIdle(1-3)
+
| '''Description''':
 +
| ThrottleIdle(1-3)
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,156: Line 2,725:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         || ThrottleOff(1-3)
+
| '''Description''':
 +
| ThrottleOff(1-3)
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,170: Line 2,743:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,184: Line 2,761:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,198: Line 2,779:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,212: Line 2,797:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,226: Line 2,815:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,240: Line 2,833:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,254: Line 2,851:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,268: Line 2,869:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,282: Line 2,887:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,296: Line 2,905:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,310: Line 2,923:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,324: Line 2,941:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,338: Line 2,959:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,352: Line 2,977:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,366: Line 2,995:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,380: Line 3,013:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
Line 2,394: Line 3,031:
 
:{|
 
:{|
 
|-valign=top
 
|-valign=top
|'''Description''':         ||
+
| '''Description''':
 +
|
 
|-valign=top
 
|-valign=top
|'''Syntax''':               ||
+
| '''Syntax''':
 +
|
 
|-valign=top
 
|-valign=top
|                           ||
+
|
 +
|
 
|-valign=top
 
|-valign=top
|'''Example''':             ||
+
| '''Example''':
 +
|
 
|}
 
|}
  
  
 
[[Category:Actions]]
 
[[Category:Actions]]

Revision as of 00:26, 25 April 2021

Contents

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: uav action ["BackFromUAV", unit]
Where uav is the connected UAV and unit is the player controlling it.
Example: getConnectedUAV player action ["BackFromUAV", player];


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 position 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 position 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: _wh = "GroundWeaponHolder_Scripted" createVehicle position player;

player action ["DropWeapon", _wh, 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];
player action ["Gear", cursorTarget];


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. Only works on player controlled aircraft.
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. Only works on player controlled aircraft.
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 Take Control 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 Arma_3_Actions#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 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.
Syntax: unit action ["SearchlightOff", vehicle]
Example: hellcatCopilot action ["SearchlightOff", vehicle hellcatCopilot]


SearchlightOn

Description: 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.
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]


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 / TakeWeapon

Description: Soldier 'unitname' takes one magazine/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 or magazine' is.
Syntax: unit action ["TakeMagazine", vehicle, magazineName]
unit action ["TakeWeapon", vehicle, weaponName]
Where unit is any unit, and vehicle is any unit or vehicle.
Example: player action ["TakeMagazine", SoldierTwo, "RPGLauncher"];


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: _logic = createGroup west createUnit ["Logic", [0,0,0], [], 0, "NONE"]; hint str magazinesDetail player; {{cc|loaded mags not shown}} {{codecomment|/*[ "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 behaviour mode. AI generally keep their rifles safe unless moving or targeting.
(VBS2 calls this action "PutWeaponOnBack")

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/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; waitUntil {unitBackpack _unit == _bag1 || time - _time > 3}; _unit action ["Assemble", _bag2];<br> 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: