action/Arma 3 Actions List: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "#REDIRECT [[Arma 3 " to "#REDIRECT [[Arma 3: ")
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="float: right; margin: 0 0 1em 1em">__TOC__</div>
#REDIRECT [[Arma 3: Actions]]
[[Category: Reference Lists]]
[[Category: Scripting Topics]]
 
= Introduction =
See [[ArmA:_Actions#Introduction|ArmA Actions - Introduction]].
{{note|Not to be confused with [[playAction]]}}
 
= General Syntax =
'''''unit'' [[action]] [''"actionType"'', ''parameter(s)'']'''
 
:{|style="background:transparent"
|-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]].
|-valign=top
|''"actionType"'':              ||[[String]]. Name of the action, found in the CfgActions class. Not case sensitive.
|-valign=top
|''parameter(s)'':              ||Various [[Data_Types|data types]], dependant on the action used. The number of required parameters depends on the action type.
|}
 
= Actions =
 
== AddBag ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || Causes a unit to take backpack from another unit/vehicle or weaponholder.
|-valign=top
|'''Syntax''':              ||''targetUnit'' action ["AddBag", ''sourceUnit'', ''"backpackName"'']
|-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.
|-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.
|-valign=top
|'''Examples''':
|<code>soldierOne [[action]] ["AddBag", soldierTwo, [[backpack]] soldierTwo];</code>
 
<code>[[player]] [[action]] ["AddBag", car, [[typeOf]] [[firstBackpack]] car];</code>
Swap player bag with parachute: <code>[[player]] [[action]] ["DropBag", _plane, [[backpack]] [[player]]];
[[player]] [[action]] ["AddBag", _plane, "B_Parachute"];
</code>
|
|}
 
== ArtilleryComputer ==
 
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["ArtilleryComputer", ''artillery'']
|-valign=top
|                            ||Where ''unit'' is any unit, and ''artillery'' is the artillery weapon
|-valign=top
|'''Example''':
|<code>soldierOne [[action]] ["ArtilleryComputer", mortarOne];</code>
|
|}
 
 
== AutoHover ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["autoHover", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is any vehicle that is capable of hovering.
|-valign=top
|'''Example''':              ||<code>chopperOne [[action]] ["autoHover", chopperOne];</code>
|}
 
 
== AutoHoverCancel ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["autoHoverCancel", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is any vehicle that is capable of hovering.
|-valign=top
|'''Example''':              ||<code>chopperOne [[action]] ["autoHoverCancel", chopperOne]</code>
|}
 
== BackFromUAV ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || Moves player control back from driver/gunner position of connected UAV. Does what "Release UAV controls" UI action does.
|-valign=top
|'''Syntax''':              ||''uav'' action ["BackFromUAV", ''unit'']
|-valign=top
|                            ||Where ''uav'' is the connected UAV and ''unit'' is the player controlling it.
|-valign=top
|'''Example''':              ||<code>[[getConnectedUAV]] [[player]] [[action]] ["BackFromUAV", [[player]]];</code>
|}
 
 
== CancelAction ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Cancels an action in progress. The target unit will complete it's current animation, although the action itself will not be performed.
|-valign=top
|'''Syntax''':              ||''unit'' action ["cancelAction", ''targetUnit'']'''
|-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.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["CancelAction", soldierOne];</code>
|}
 
 
== CancelLand ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Cancels autopilot landing for an aircraft, including AI controlled aircraft.
|-valign=top
|'''Syntax''':              ||''unit'' action ["cancelLand", ''targetVehicle'']'''
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is any vehicle that is currently performing an autopilot landing.
|-valign=top
|'''Example''':              ||<code>planeOne [[action]] ["cancelLand", planeOne];</code>
|}
 
 
== CancelTakeFlag ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Cancels taking of a flag. The unit will complete the taking/action animation, but the flag will remain attached to it's 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
|'''Syntax''':              ||''unit'' action ["cancelTakeFlag", ''targetFlag'']
|-valign=top
|                            ||Where ''unit'' is any unit that is currently taking a flag (no action animation is performed) and ''targetFlag''' is a flag object.
|-valign=top
|'''Example''':              ||<code>westSoldierOne [[action]] ["cancelTakeFlag", eastFlag];</code>
|}
 
 
 
== CollisionLightOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Turns off the collision lights of an air vehicle.
|-valign=top
|'''Syntax''':              ||''unit'' action ["CollisionLightOff", ''targetVehicle'']'''
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["CollisionLightOff", [[vehicle]] [[player]]];</code>
|}
 
 
== CollisionLightOn ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Turns on the collision lights of an air vehicle.
|-valign=top
|'''Syntax''':              ||''unit'' action ["CollisionLightOn", ''targetVehicle'']'''
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["CollisionLightOn", [[vehicle]] [[player]]];</code>
|}
 
== Deactivate ==
:{|style="background:transparent"
|-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.
 
This action also works for landmines created with [[createVehicle]] command:
<code>mine = "ATMine_Range_Ammo" [[createVehicle]] [[position]] [[player]]; //create
[[player]] [[action]] ["Deactivate", [[player]], mine]; //deactivate </code>
|-valign=top
|'''Syntax''':              ||''unit'' action ["deactivate", ''targetUnit'', ''targetObject'']
|-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's inventory. ''targetObject'' is the armed satchel object to be deactivated (class "pipeBomb" or "timeBomb").
|-valign=top
|'''Examples''':            ||<code>soldierOne [[action]] ["deactivate", soldierOne, mySatchelCharge];</code>
|-valign=top
|                            ||<code>soldierOne [[action]] ["deactivate", soldierOne, [[nearestObject]] [soldierOne, "pipeBomb"]];</code>
|}
 
 
== DeactivateMine ==
:{|style="background:transparent"
|-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.
 
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
|'''Syntax''':              ||''unit'' action ["deactivateMine", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is any unit, who will perform the action animation. The closest landmine to ''targetUnit'' will be deactivated.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["deactivateMine", soldierOne];</code>
|}
 
 
== Diary ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Use and effects unknown.
|-valign=top
|'''Syntax''':              ||''unit'' action ["diary", ''<target>'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== Disassemble ==
 
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Takes assembled weapon to parts (carry bags). Assembled weapon object reference may need to be kept for assembly. See also: [[enableWeaponDisassembly]]
|-valign=top
|'''Syntax''':              ||''unit'' action ["Disassemble", ''weapon'']'''
|-valign=top
|                            ||Where ''unit'' is any unit and ''weapon'' is assembled weapon
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["Disassemble", mortarOne];</code>
|}
 
== DropBag ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''sourceUnit'' action ["DropBag", ''targetUnit'', ''"backpackName"'']
|-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.
|-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).
|-valign=top
|'''Examples''':
|<code>soldierOne [[action]] ["DropBag", soldierTwo, [[backpack]] soldierOne];</code>
 
<code>_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.</code>
 
<code>([[unitBackpack]] [[player]]) [[setVariable]] ["backpackOwner", [[name]] [[player]], true];
[[player]] [[action]] ["DropBag", car, [[typeOf]] [[unitBackpack]] [[player]]];
[[hint]] (([[firstBackpack]] car) [[getVariable]] "backpackOwner");</code>
 
Swap player bag with parachute: <code>[[player]] [[action]] ["DropBag", _plane, [[backpack]] [[player]]];
[[player]] [[action]] ["AddBag", _plane, "B_Parachute"];
</code>
|
|}
 
== DropMagazine ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["dropMagazine", ''targetUnit'', ''"magazineName"'']
|-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).
|-valign=top
|'''Examples''':            ||<code>soldierOne [[action]] ["dropMagazine", soldierOne, "30Rnd_545x39_AK"];</code>
|-valign=top
|                            ||<code>soldierOne [[action]] ["dropMagazine", ammoCrateOne, "30Rnd_545x39_AK"];</code>
|}
 
 
== DropWeapon ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["dropWeapon", ''targetHolder'', ''"weaponName"'']
|-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.
|-valign=top
|'''Examples''':            ||
<code>_wh = "GroundWeaponHolder_Scripted" [[createVehicle]] [[position]] [[player]];
[[player]] [[action]] ["DropWeapon", _wh, [[currentWeapon]] [[player]]];</code>
<code>soldierOne [[action]] ["DropWeapon", [[unitBackpack]] soldierTwo, [[currentWeapon]] soldierOne];</code>
<code>[[player]] [[action]] ["DropWeapon", tank, "arifle_MX_ACO_pointer_F"];</code>
|-valign=top
|                         
|}
 
== Eject ==
:{|style="background:transparent"
|-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's steering control input and it's 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
|'''Syntax''':              ||''unit'' action ["eject", ''vehicle'']
|-valign=top
|                            ||Where ''unit'' is the person to eject from their current vehicle, and ''vehicle'' is any vehicle (generally the vehicle ''unit'' is within).
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["Eject", vehicle soldierOne];</code>
|}
 
 
== EngineOn ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || Turns a vehicle's engine on. This command will not override an AI driver's desires.
|-valign=top
|'''Syntax''':              ||''unit'' action ["engineOn", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit, and ''targetVehicle'' is the vehicle to start it's engine.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["engineOn", vehicle soldierOne];</code>
|}
 
 
== EngineOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || Turns a vehicle's engine off. This command will not override an AI driver's desires.
|-valign=top
|'''Syntax''':              ||''unit'' action ["engineOff", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit, and ''targetVehicle'' is the vehicle to have it's engine turned off.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["engineOff", vehicle soldierOne];</code>
|}
 
 
== FireInflame ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || Ignites a fireplace object (from any distance).
|-valign=top
|'''Syntax''':              ||''unit'' action ["FireInflame", ''targetObject'']
|-valign=top
|                            ||Where ''unit'' is any unit(the action animation will be performed), and ''targetObject'' is the fireplace to be ignited.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["FireInflame", firePlaceOne];</code>
|}
 
== FirePutDown ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || Extinguishes a fireplace object (from any distance).
|-valign=top
|'''Syntax''':              ||''unit'' action ["FirePutDown", ''targetObject'']
|-valign=top
|                            ||Where ''unit'' is any unit (the action animation will be performed), and ''targetObject'' is the fireplace to be extinguished.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["FirePutDown", firePlaceOne];</code>
|}
 
== FlapsUp ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["flapsUp", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit (the action animation will not be performed), and ''targetVehicle'' is the aircraft to have it's flaps adjusted.
|-valign=top
|'''Example''':              ||<code>harrierOne [[action]] ["flapsUp", harrierOne];</code>
|}
 
 
== FlapsDown ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["flapsDown", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit (the action animation will not be performed), and ''targetVehicle'' is the aircraft to have it's flaps adjusted.
|-valign=top
|'''Example''':              ||<code>harrierOne [[action]] ["flapsDown", harrierOne];</code>
|}
 
 
== Gear ==
:{|style="background:transparent"
|-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).
|-valign=top
|'''Syntax''':              ||''unit'' action ["Gear", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is a player, and ''targetUnit'' is another player, vehicle or container.
|-valign=top
|'''Examples''':              ||<code>[[player]] [[action]] ["Gear","GroundWeaponHolder" [[createVehicle]] [[position]] [[player]]];</code>
|-valign=top
||<code>[[player]] [[action]] ["Gear", [[objNull]]];</code>
|-valign=top
||<code>[[player]] [[action]] ["Gear", soldier1];</code>
|-valign=top
||<code>[[player]] [[action]] ["Gear", [[cursorTarget]]];</code>
|}
 
 
== GetInCargo ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["getInCargo", ''targetVehicle'']
|-valign=top
|                            ||''unit'' action ["getInCargo", ''targetVehicle'', ''positionNumber'']
|-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.
|-valign=top
|'''Examples''':            ||<code>soldierOne [[action]] ["getInCargo", truckOne];</code>
|-valign=top
|                            ||<code>soldierOne [[action]] ["getInCargo", truckOne, 0];</code>
|}
 
== GetInCommander ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["getInCommander", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["getInCommander", tankOne];</code>
|}
 
 
== GetInDriver ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["getInDriver", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["getInDriver", carOne];</code>
|}
 
 
== GetInGunner ==
:{|style="background:transparent"
|-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]].
|-valign=top
|'''Syntax''':              ||''unit'' action ["getInGunner", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["getInGunner", mySpotlight];</code>
|}
 
 
== GetInPilot ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["getInPilot", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is the person to board, and ''targetVehicle'' is the vehicle to be boarded.
|-valign=top
|'''Example''':              ||<code>pilotOne [[action]] ["getInPilot", chopperOne];</code>
|}
 
 
== GetInTurret ==
:{|style="background:transparent"
|-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]].
|-valign=top
|'''Syntax''':              ||''unit'' action ["getInTurret", ''targetVehicle'', ''turretArray'']
|-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's class CfgVehicles of the Config.
|-valign=top
|'''Examples''':            ||<code>gunnerTwo [[action]] ["getInTurret", myUH60MG, [1]];</code>
|-valign=top
|                            ||<code>tankCommanderOne [[action]] ["getInTurret", myT72, [0,1]];</code>
|}
 
 
== GetOut ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Causes a person to disembark from a vehicle, without a parachute in the case of aircraft. See also [[#Eject|eject]].
|-valign=top
|'''Syntax''':              ||''unit'' action ["getOut", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is the person to disembark, and ''targetVehicle'' is the vehicle to disembark from.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["getOut", carOne];</code>
|}
 
 
== HandGunOn ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["handGunOn", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is any unit (who will not play the action animation), and ''targetUnit'' is the unit who will ready their pistol.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["handGunOn", soldierOne];</code>
|}
 
 
== HandGunOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Causes a person to return a readied pistol to it's holster, then switch to the primary rifle. This action may not work if the unit does not have a primary rifle.
|-valign=top
|'''Syntax''':              ||''unit'' action ["handGunOff", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is any unit (who will not play the action animation), and ''targetUnit'' is the person to holster it's pistol.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["handGunOff", soldierOne];</code>
|}
 
 
== Heal ==
:{|style="background:transparent"
|-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).
|-valign=top
|'''Syntax''':              ||''unit'' action ["heal", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is a wounded person, and ''targetUnit'' is the medic to do the healing.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["heal", medicOne];</code>
|}
 
== HealSoldier ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["HealSoldier", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is the unit to perform treatment, and ''targetUnit'' is the unit to recieve treatment.
|-valign=top
|'''Example''':              ||<code>player [[action]] ["HealSoldier", soldier1];</code>
|}
 
== HealSoldierSelf ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["HealSoldierSelf", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is the unit to perform treatment, and ''targetUnit'' is the unit to recieve treatment.
|-valign=top
|'''Example''':              ||<code>player [[action]] ["HealSoldierSelf", soldier1];</code>
|}
 
 
== HideBody ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["hideBody", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is a person, and ''targetUnit'' is a dead person.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["hideBody", soldierTwo];</code>
|}
 
 
== InGameMenu ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Use and effects unknown.
|-valign=top
|'''Syntax''':              ||''unit'' action ["inGameMenu", ''<target>'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== LadderDown ==
:{|style="background:transparent"
|-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).
|-valign=top
|'''Syntax''':              ||''unit'' action ["ladderDown", ''targetObject'']
|-valign=top
|                            ||''unit'' action ["ladderDown", ''targetObject'', ''ladderNumber'', ''positionNumber'']
|-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.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["ladderDown", (position soldierOne nearestObject 452221), 0, 1];</code>
|}
 
 
== LadderUp ==
:{|style="background:transparent"
|-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).
|-valign=top
|'''Syntax''':              ||''unit'' action ["ladderUp", ''targetObject''] '''!!!Warning!!! This syntax causes Arma 3 to freeze'''
|-valign=top
|                            ||''unit'' action ["ladderUp", ''targetObject'', ''ladderNumber'', ''positionNumber'']
|-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.
|-valign=top
|'''Example''':             ||<code>soldierOne [[action]] ["ladderUp", (position soldierOne nearestObject 452221), 0, 0];</code>
|}
 
== LadderOff ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["ladderOff", ''targetObject'']
|-valign=top
|                            ||''unit'' action ["ladderOff", ''targetObject'', ''unknownNumber'']
|-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.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["ladderOff", (position soldierOne nearestObject 452221)];</code>
|}
 
== LadderOnDown ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          This action appears to be identical to [[#LadderDown|LadderDown]].
|}
 
 
== LadderOnUp ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          This action appears to be identical to [[#LadderUp|LadderUp]].
|}
 
 
== Land ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Turns on autopilot landing for an aircraft, including AI controlled aircraft. The aircraft will land at the closest airfield.
|-valign=top
|'''Syntax''':              ||''unit'' action ["Land", ''targetVehicle'']'''
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle that can perform an autopilot landing.
|-valign=top
|'''Example''':              ||<code>planeOne [[action]] ["Land", planeOne];</code>
|}
 
 
== LandGear ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Lowers the landing gear of an aircraft. Only works on player controlled aircraft.
|-valign=top
|'''Syntax''':              ||''unit'' action ["LandGear", ''targetVehicle'']'''
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle that can perform an autopilot landing.
|-valign=top
|'''Example''':              ||<code>planeOne [[action]] ["LandGear", planeOne];</code>
|}
 
 
== LandGearUp ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Raises the landing gear of an aircraft. Only works on player controlled aircraft.
|-valign=top
|'''Syntax''':              ||''unit'' action ["LandGearUp", ''targetVehicle'']'''
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle that can perform an autopilot landing.
|-valign=top
|'''Example''':              ||<code>planeOne [[action]] ["LandGearUp", planeOne];</code>
|}
 
 
== LightOff ==
:{|style="background:transparent"
|-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).
|-valign=top
|'''Syntax''':              ||''unit'' action ["lightOff", ''targetVehicle'']'''
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["lightOff", [[vehicle]] [[player]]];</code>
|}
 
 
== LightOn ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["lightOn", ''targetVehicle'']'''
|-valign=top
|                            ||Where ''unit'' is any unit (no action animation is performed) and ''targetVehicle'' is a vehicle with lights.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["lightOn",  [[vehicle]] [[player]]];</code>
|}
 
 
== LoadMagazine ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Plays a reload weapon animation.
|-valign=top
|'''Syntax''':              ||''unit'' action ["loadMagazine", target, magazineCreator, ''number1'', ''number2'', weaponName, muzzleName]
|-valign=top
|                            ||Expects a 7 element array:
|-valign=top
|                            || target: [[Object]] - unit to perform the reload action.
|-valign=top
|                            || magazineCreator: [[Object]] - unknown. Can be objNull.
|-valign=top
|                            || ''number1'': [[Number]] - unknown. It seems it must be 0 to work.
|-valign=top
|                            || ''number2'': [[Number]] - unknown. 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
|                            || weaponName: [[String]] - weapon to reload. Must not be selected, but may cause weapon not to reload to the full amount.
|-valign=top
|                            || muzzleName: [[String]] - weapon's muzzle to reload.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["loadmagazine", [[player]], [[player]], 0, 1 ,"vbs2_us_m16a2_iron_gla", "vbs2_us_m16a2_iron_gla"];</code>
|}
 
== LockVehicleControl ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Locks co-pilot controls, removes [[Arma_3:_Actions#TakeVehicleControl|Take Control]] action. [[enableCopilot]] must be set true to function.
|-valign=top
|'''Syntax''':              ||''unit'' action ["LockVehicleControl", ''vehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["LockVehicleControl", [[vehicle]] [[player]]];</code>
|}
 
 
== ManualFire ==
:{|style="background:transparent"
|-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]])
|-valign=top
|'''Syntax''':              ||''unit'' action ["manualFire", ''targetVehicle'']'''
|-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.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["ManualFire", [[vehicle]] [[player]]];</code>
|}
 
 
== ManualFireCancel ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Disables manual fire mode for a player unit that is driver or commander of a vehicle. (See also [[isManualFire]])
|-valign=top
|'''Syntax''':              ||''unit'' action ["manualFireCancel", ''targetVehicle'']'''
|-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.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["manualFireCancel", [[vehicle]] [[player]]];</code>
|}
 
 
== MarkEntity ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Use and effects unknown. Same as [[Arma_3_Actions#MarkWeapon]] action.
|-valign=top
|'''Syntax''':              ||''unit'' action ["markEntity", <target>]
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== MoveToCargo ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["moveToCargo", ''targetVehicle'', ''cargoPosition'']
|-valign=top
|                            ||Where ''unit'' is a unit within ''targetVehicle'', and ''cargoPosition'' is the number of the desired cargo position (0 being the first).
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["moveToCargo", [[vehicle]] [[player]], 2];</code>
|}
 
== MoveToCommander ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["moveToCommander", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is a unit within ''targetVehicle''.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["moveToCommander", [[vehicle]] [[player]]];</code>
|}
 
 
== MoveToDriver ==
:{|style="background:transparent"
|-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).
|-valign=top
|'''Syntax''':              ||''unit'' action ["moveToDriver", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is a unit within ''targetVehicle''.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["moveToDriver", [[vehicle]] [[player]]];</code>
|}
 
 
== MoveToGunner ==
:{|style="background:transparent"
|-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]].
|-valign=top
|'''Syntax''':              ||''unit'' action ["moveToGunner", ''targetVehicle'']
|-valign=top
|                            ||Where ''unit'' is a unit within ''targetVehicle''.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["moveToGunner", [[vehicle]] [[player]]];</code>
|}
 
 
== MoveToPilot ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          Identical to [[#MoveToDriver|moveToDriver]].
|}
 
 
== MoveToTurret ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["moveToTurret", ''targetVehicle'', ''turretArray'']
|-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).
|-valign=top
|'''Examples''':            ||<code>[[player]] [[action]] ["moveToTurret", [[vehicle]] [[player]], [0]];</code>
|-valign=top
|                            ||<code>[[player]] [[action]] ["moveToTurret", [[vehicle]] [[player]], [0,1]];</code>
|}
 
 
== None ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Use and effects unknown.
|-valign=top
|'''Syntax''':              ||''unit'' action ["none", ''<target>'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== NVGoggles ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Causes a unit to put on it's night vision goggles. AI controlled units will automatically put on and take off goggles depending on daylight.
|-valign=top
|'''Syntax''':              ||''unit'' action ["nvGoggles", ''<anything>'']
|-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).
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["nvGoggles", [[player]]];</code>
|}
 
 
== NVGogglesOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Causes a unit to take off it's night vision goggles. AI controlled units will automatically put on and take off goggles depending on daylight.
|-valign=top
|'''Syntax''':              ||''unit'' action ["nvGogglesOff", ''<anything>'']
|-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).
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["nvGogglesOff", [[player]]];</code>
|}
 
 
== OpenParachute ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Opens unit's parachute. Unit must have parachute backpack.
|-valign=top
|'''Syntax''':              ||''unit'' action ["OpenParachute", ''unit'']
|-valign=top
|                            ||Where ''unit'' is the unit with parachute backpack.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["OpenParachute", [[player]]];</code>
|}
 
 
== PutBag ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''sourceUnit'' action ["PutBag", ''targetUnit'']
|-valign=top
|                            ||''targetUnit'' is optional
|-valign=top
|'''Note''':                || To pick the backpack from the ground use "AddBag" action.
|-valign=top
|'''Examples''':
|<code>[[player]] [[action]] ["PutBag"];
unit1 [[action]] ["PutBag", unit2];</code>
|
|}
 
== Rearm ==
:{|style="background:transparent"
|-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's 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
|'''Syntax''':              ||''unit'' action ["rearm", ''reamingObject'']
|-valign=top
|                            ||Where ''unit'' is the occupied vehicle or person to be rearmed, and ''rearmingObject'' is the object from which to rearm.
|-valign=top
|'''Examples''':            ||<code>tankOne [[action]] ["rearm", ammoTruckOne]</code>
|-valign=top
|                            ||<code>soldierOne [[action]] ["rearm", ammoTruckOne];</code>
|}
 
 
== Refuel ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''vehicle'' action ["refuel", ''refuelingObject'']
|-valign=top
|                            ||Where ''vehicle'' is the occupied vehicle to be refueled, and ''refuelingObject'' is the object from which to refuel.
|-valign=top
|'''Example''':              ||<code>tankOne [[action]] ["refuel", refuelTruckOne];</code>
|}
 
 
== Repair ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''vehicle'' action ["repair", ''repairingObject'']
|-valign=top
|                            ||Where ''vehicle'' is the occupied vehicle to be repaired, and ''repairingObject'' is the object from which to repair.
|-valign=top
|'''Example''':              ||<code>tankOne [[action]] ["repair", repairTruckOne];</code>
|}
 
 
== ReturnFlag ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Causes a person to return a flag from a nearby dead person back to it's flagpole. As of ArmA v1.12 this action is bugged and can not be used upon flags attached to destroyed vehicles.
|-valign=top
|'''Syntax''':              ||''unit'' action ["returnFlag", ''targetObject'']
|-valign=top
|                            ||Where ''unit'' is any person, and ''targetObject'' is the dead person with a flag to be returned.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["returnFlag", westFlag];</code>
|}
 
 
== RepairVehicle ==
 
'''OA only. Required version 1.54.'''
 
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["repairVehicle", ''vehicle'']
|-valign=top
|                            ||Where ''unit'' is an Engineer unit, and ''vehicle'' is the object to repair.
|-valign=top
|'''Example''':              ||<code>engineerOne [[action]] ["repairVehicle", truckOne];</code>
|}
 
 
== Salute ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["salute", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is any unit (no animation is performed), and ''targetUnit'' is the person to make the salute.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["salute", soldierOne];</code>
|}
 
 
== ScudCancel ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
|-valign=top
|'''Syntax''':              ||''unit'' action ["scudCancel", ''targetVehicle'']
|-valign=top
|                            ||Syntax unknown.
|-valign=top
|'''Example''':              ||
|}
 
 
== ScudLaunch ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
|-valign=top
|'''Syntax''':              ||''unit'' action ["scudLaunch", ''targetVehicle'']
|-valign=top
|                            ||Syntax unknown.
|-valign=top
|'''Example''':              ||
|}
 
 
== ScudStart ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||There is no Scud Launcher in ArmA, however this action (probably) remains in the engine from the days of Operation Flashpoint.
|-valign=top
|'''Syntax''':              ||''unit'' action ["scudStart", ''targetVehicle'']
|-valign=top
|                            ||Syntax unknown.
|-valign=top
|'''Example''':              ||
|}
 
== SearchlightOff ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["SearchlightOff", ''vehicle'']
|-valign=top
|'''Example''':              || hellcatCopilot action ["SearchlightOff", vehicle hellcatCopilot]
|}
 
 
== SearchlightOn ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["SearchlightOn", ''vehicle'']
|-valign=top
|'''Example''':              ||  hellcatCopilot action ["SearchlightOn", vehicle hellcatCopilot]
|}
 
== SetTimer ==
:{|style="background:transparent"
|-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.
Charge has to be places first using ''unitname [[Fire]] ["pipebombmuzzle", "pipebombmuzzle", "pipebomb"]'' command.
 
|-valign=top
|'''Syntax''':              ||''unitOne'' action ["SetTimer", ''unitTwo'', ''bombName'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== SitDown ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["sitDown", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is any unit (no animation is performed), and ''targetUnit'' is the person who is to sit down.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["sitDown", soldierOne];</code>
|}
 
== StrokeFist ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["strokeFist", ''targetVehicle'']
|-valign=top
|                            ||Syntax unknown.
|-valign=top
|'''Example''':              ||
|}
 
 
== StrokeGun ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["strokeGun", ''targetVehicle'']
|-valign=top
|                            ||Syntax unknown.
|-valign=top
|'''Example''':              ||
|}
 
 
== Surrender ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["Surrender", ''targetUnit'']
|-valign=top
|                            ||Where ''unit'' is any unit, and ''targetUnit'' is the unit to surrender.
|-valign=top
|'''Example''':              ||<code>soldierOne [[action]] ["Surrender", soldierTwo];</code>
|}
 
 
== SuspendVehicleControl ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Release vehicle controls from co-pilot. Control immediately returns to pilot.
|-valign=top
|'''Syntax''':              ||''unit'' action ["SuspendVehicleControl", ''vehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["SuspendVehicleControl", [[vehicle]] [[player]]];</code>
|}
 
 
== SwitchMagazine ==
:{|style="background:transparent"
|-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.
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["SwitchMagazine", ''targetVehicle'', ''targetUnit'', ''mode index'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>gameLogic [[action]] ["SwitchMagazine", unit1, unit1, 3];
gameLogic [[action]] ["SwitchMagazine", m1a1, [[gunner]] m1a1, 1];</code>
|}
 
 
== SwitchWeapon ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["SwitchWeapon", ''targetUnit'', ''targetUnit'', ''muzzle index'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':
|<code>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</code>
|-valign=top
|
|<code>[[player]] [[action]] ["SwitchWeapon", [[player]], [[player]], weaponIndex];</code>
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 ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || Moves player control into driver position of connected UAV. Does what "Take UAV controls" UI action does.
|-valign=top
|'''Syntax''':              ||''unit'' action ["SwitchToUAVDriver", ''uav'']
|-valign=top
|                            ||Where ''unit'' is a player and ''uav'' is the connected UAV.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["SwitchToUAVDriver", [[getConnectedUAV]] [[player]]];</code>
|}
 
 
== SwitchToUAVGunner ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || Moves player control into gunner position of connected UAV. Does what "Take UAV turret controls" UI action does.
|-valign=top
|'''Syntax''':              ||''unit'' action ["SwitchToUAVGunner", ''uav'']
|-valign=top
|                            ||Where ''unit'' is a player and ''uav'' is the connected UAV.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["SwitchToUAVGunner", [[getConnectedUAV]] [[player]]];</code>
|}
 
 
== TakeFlag ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Soldier 'unitname' takes control of 'flag1'. He must be close to the flagpole and it must belong to an enemy side.
|-valign=top
|'''Syntax''':              ||''unit'' action ["TakeFlag", ''flag1'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["TakeFlag", FlagOne];</code>
|}
 
 
== TakeMagazine / TakeWeapon ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["TakeMagazine", ''vehicle'', ''magazineName'']
|-valign=top
|                            ||''unit'' action ["TakeWeapon", ''vehicle'', ''weaponName'']
|-valign=top
|                            ||Where ''unit'' is any unit, and ''vehicle'' is any unit or vehicle.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["TakeMagazine", SoldierTwo, "RPGLauncher"];</code>
|}
 
 
== TakeMine ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["TakeMine", ''targetUnit'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["TakeMine", [[player]]];</code>
|}
 
 
== TakeVehicleControl ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||In case of a helicopter, copilot will take flying controls, even if [[enableCopilot]] is disabled and [[isCopilotEnabled]] is [[false]].
|                            ||Use [[Arma_3:_Actions#SuspendVehicleControl|SuspendVehicleControl]] action to release control.
|-valign=top
|'''Syntax''':              ||''unit'' action ["TakeVehicleControl", ''vehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["TakeVehicleControl", [[vehicle]] [[player]]];</code>
|}
 
 
== Talk ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Use and effects unknown.
|-valign=top
|'''Syntax''':              ||''unit'' action ["Talk", ''target'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== TeamSwitch ==
:{|style="background:transparent"
|-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).
|-valign=top
|'''Syntax''':              ||''currentUnit'' action ["TeamSwitch", ''unit'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["TeamSwitch", [[player]]];</code>
|}
 
 
== TouchOff ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unitOne'' action ["TouchOff", ''unitTwo'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["TouchOff", [[player]]];</code>
|}
 
 
== TurnIn / TurnOut ==
:{|style="background:transparent"
|-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.).
|-valign=top
|'''Syntax''':              ||''unit'' action ["TurnIn", ''vehicle'']
|-valign=top
|                            ||''unit'' action ["TurnOut", ''vehicle'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>TankOne [[action]] ["TurnIn", TankOne];
[[player]] [[action]] ["TurnOut", [[vehicle]] [[player]]];</code>
|}
 
 
== UAVTerminalMakeConnection ==
:{|style="background:transparent"
|-valign=top
|'''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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["UAVTerminalMakeConnection", ''uav'']
|-valign=top
|                            ||Where ''unit'' is a player and ''uav'' is UAV to be connected to.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["UAVTerminalMakeConnection", [[allUnitsUAV]] [[select]] 0];</code>
|}
 
 
== UAVTerminalOpen ==
:{|style="background:transparent"
|-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.
|-valign=top
|'''Syntax''':              ||''unit'' action ["UAVTerminalOpen", ''unit'']
|-valign=top
|                            ||Where ''unit'' is a player.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["UAVTerminalOpen", [[player]]];</code>
|}
 
 
== UAVTerminalReleaseConnection ==
:{|style="background:transparent"
|-valign=top
|'''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.
|-valign=top
|'''Syntax''':              ||''uav'' action ["UAVTerminalReleaseConnection", ''unit'']
|-valign=top
|                            ||Where ''uav'' is the connected UAV and ''unit'' is the player controlling it.
|-valign=top
|'''Example''':              ||<code>[[getConnectedUAV]] [[player]] [[action]] ["UAVTerminalReleaseConnection", [[player]]];</code>
|}
 
 
== UnlockVehicleControl ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Unlocks co-pilot controls, shows [[Arma_3:_Actions#TakeVehicleControl|Take Control]] action. [[enableCopilot]] must be set true to function.
|-valign=top
|'''Syntax''':              ||''unit'' action ["UnlockVehicleControl", ''vehicle'']
|-valign=top
|                            ||Where ''unit'' is any unit, and ''vehicle'' is any vehicle with co-pilot controls.
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["UnlockVehicleControl", [[vehicle]] [[player]]];</code>
|}
 
 
== UseMagazine ==
:{|style="background:transparent"
|-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)
|-valign=top
|'''Syntax''':              ||''LOGIC'' action ["UseMagazine", ''target'', ''magazine creator'', ''<cr>'', ''<id>'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
<code>_logic = [[createGroup]] [[west]] [[createUnit]] ["Logic", [0,0,0], [], 0, "NONE"];
[[hint]] [[str]] [[magazinesDetail]] [[player]]; //loaded mags not shown
/*[
"6.5mm 30Rnd STANAG Mag(30/30)[id/cr:3/0]",
"Smoke Round (White)(1/1)[id/cr:121/0]",
"Smoke Round (White)(1/1)[id/cr:122/0]",
"9mm 16Rnd Mag(16/16)[id/cr:11/0]"
]*/
_logic [[action]] ["UseMagazine", [[player]], [[player]], 0, 3]; //loads rifle with mag id 3 and fires
_logic [[action]] ["UseMagazine", [[player]], [[player]], 0, 11]; //loads pistol with mag id 11 and fires from inventory
_logic [[action]] ["UseMagazine", [[player]], [[player]], 0, 121]; //throws smoke grenade with id 121</code>
|}
 
 
== User ==
:{|style="background:transparent"
|-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]].
|-valign=top
|'''Syntax''':              ||''unitName'' action ["User", ''target unit'', ''action index'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>gameLogic [[action]] ["User", [[player]], 3];</code>
|}
 
 
== UserType ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||As of ArmA version 1.08, using this action type will cause ArmA to crash to desktop.
|-valign=top
|'''Syntax''':              ||''unit'' action ["UserType", ''target'', ''action index'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== UseWeapon ==
:{|style="background:transparent"
|-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.
|-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.
|-valign=top
|'''Syntax''':              ||''unitOne'' action ["UseWeapon", ''target vehicle'', ''target unit'', ''weapon index'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
<code>_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];</code>
|}
 
== VectoringDown ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || If VTOL auto-vectoring is off, incremental forward tilt of engine nacelles.
|-valign=top
|'''Syntax''':              ||''unit'' action ["VectoringDown", ''vehicle'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== VectoringUp ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          || If VTOL auto-vectoring is off, incremental upward tilt of engine nacelles.
|-valign=top
|'''Syntax''':              ||''unit'' action ["VectoringUp", ''vehicle'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== VTOLVectoring ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Toggles '''off''' VTOL auto-vectoring (manual mode)
|-valign=top
|'''Syntax''':              ||''unit'' action ["VTOLVectoring", ''vehicle'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== VTOLVectoringCancel ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Toggles '''on''' VTOL auto-vectoring (forward mode)
|-valign=top
|'''Syntax''':              ||''unit'' action ["VTOLVectoringCancel", ''vehicle'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== WeaponInHand / WeaponOnBack ==
:{|style="background:transparent"
|-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).
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"'')
|-valign=top
|'''Syntax''':              ||''unitName'' action ["WeaponInHand", ''target unit'']
|-valign=top
|                            ||''unitName'' action ["WeaponOnBack", ''target unit'']
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>SoldierOne [[action]] ["WeaponOnBack", SoldierTwo]</code>
|}
 
= Unsorted actions found in UI.pbo/config.bin =
 
 
== LoadOtherMagazine ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== LoadEmptyMagazine ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== PutWeapon ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Is alias of DropWeapon
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':  ||
<code>_wh = "GroundWeaponHolder_Scripted" [[createVehicle]] [[position]] [[player]];
[[player]] [[action]] ["PutWeapon", _wh, [[currentWeapon]] [[player]]];</code>     
|}
 
== PutMagazine ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||is synonym for DropMagazine (same syntax)?
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== StartTimer ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||is synonym for SetTimer (same syntax) ?
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== HideWeapon ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||unit action ["hideWeapon",<object>,<object>,<Number>]
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== MarkWeapon ==
:{|style="background:transparent"
|-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. ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== HandGunOffStand ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== HandGunOnStand ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== TakeDropMagazine/TakeDropWeapon ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== Assemble ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||OA only.
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>_unit [[action]] ["Assemble", (nearestObject [_unit, "Tripod_Bag"])];</code>
|}
 
 
== FirstAid ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== GetOver ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
 
== GunLightOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["GunLightOff", [[player]]];</code>
|}
 
 
== GunLightOn ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["GunLightOn", [[player]]];</code>
|}
 
 
== IRLaserOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["IRLaserOff", [[player]]];</code>
|}
 
 
== IRLaserOn ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||<code>[[player]] [[action]] ["IRLaserOn", [[player]]];</code>
|}
 
 
== OpenBag ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Opens inventory UI with backpack of a unit (another unit). Unit must be in proximity.
|-valign=top
|'''Syntax''':              ||unit1 action ["OpenBag", unit2];
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||player action ["OpenBag", bob];
|}
 
== TakeBag ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||Unit takes specified backpack from the ground.
|-valign=top
|'''Syntax''':              ||_unit action ["TakeBag", _bag];
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
<code>player addEventHandler ["WeaponDisassembled",
{
_this spawn
{
_unit = _this select 0;
_bag1 = _this select 1;
_bag2 = _this select 2;<br/>
_currBag = unitBackpack _unit;<br/>
titleText ["You are not allowed to disassemble static weapons.", "PLAIN DOWN", 0.5];<br/>
_unit action ["TakeBag", _bag1];<br/>
_time = time;
waitUntil {unitBackpack _unit == _bag1 || time - _time > 3};<br/>
_unit action ["Assemble", _bag2];<br/>
if (!isNull _currBag) then { _unit action ["TakeBag", _currBag] };
};
}];</code>
|}
 
== Tell ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== APUOn ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== APUOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== BatteriesOn ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== BatteriesOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== StarterOn<#> ==
:{|style="background:transparent"
|-valign=top
|'''Description''': StarterOn(1-3)||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== StarterOff<#> ==
:{|style="background:transparent"
|-valign=top
|'''Description''': StarterOff(1-3)||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== ThrottleFull<#> ==
:{|style="background:transparent"
|-valign=top
|'''Description''': ThrottleFull(1-3)||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== ThrottleIdle<#> ==
:{|style="background:transparent"
|-valign=top
|'''Description''': ThrottleIdle(1-3)||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== ThrottleOff<#> ==
:{|style="background:transparent"
|-valign=top
|'''Description''': ThrottleOff(1-3)||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== RotorBrakeOn ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== RotorBrakeOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== WheelsBrakeOn ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== WheelsBrakeOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== AIAssemble ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== UAVTerminalHackConnection ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== ActiveSensorsOn ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== ActiveSensorsOff ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== ListLeftVehicleDisplay ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== ListRightVehicleDisplay ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== ListPrevLeftVehicleDisplay ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== ListPrevRightVehicleDisplay ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== CloseLeftVehicleDisplay ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== CloseRightVehicleDisplay ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== NextModeLeftVehicleDisplay ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== NextModeRightVehicleDisplay ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== UnloadUnconsciousUnits ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== HookCargo ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== UnhookCargo ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== LoadVehicle ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== UnloadVehicle ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}
 
== UnloadAllVehicles ==
:{|style="background:transparent"
|-valign=top
|'''Description''':          ||
|-valign=top
|'''Syntax''':              ||
|-valign=top
|                            ||
|-valign=top
|'''Example''':              ||
|}

Latest revision as of 14:39, 23 June 2021

Redirect to: