This seems no longer true in Arma 3:
Does not work on dead crew - Use setPos family of commands to move dead units out soon after they became dead. After awhile dead unit's group becomes grpNull and it cannot be moved out at all.
Also available as Markdown and JSON, or read the original wiki page.
Moves the soldier out of the vehicle.
Notes:
moveOut soldier
Parameters:
soldier: Object - unit (only a living unit before Arma 3 v2.06)Returns: Nothing
since arma3 2.06
soldier moveOut vehicle
Parameters:
soldier: Object - unitvehicle: Object - vehicle could be objNull, in this case the command is identical to the main syntax.Returns: Nothing
{ if (lifeState _x == "UNCONSCIOUS") then { moveOut _x } } forEach crew cursorTarget;
Move out player just before he dies:
player addEventHandler [
"HandleDamage",
format [
'if (switch (_this select 1) do {
case "": { _this select 2 >= 1 };
case "head": {_this select 2 >= %1};
case "body": {_this select 2 >= %2};
default {false};
}) then {moveOut player}',
getNumber (configFile >> "CfgFirstAid" >> "CriticalHeadHit"),
getNumber (configFile >> "CfgFirstAid" >> "CriticalBodyHit")
]
];
Arma 3: Actions · doGetOut · commandGetOut · leaveVehicle · moveInDriver · moveInGunner · moveInCommander · moveInTurret · moveInCargo · isTurnedOut
This seems no longer true in Arma 3:
Does not work on dead crew - Use setPos family of commands to move dead units out soon after they became dead. After awhile dead unit's group becomes grpNull and it cannot be moved out at all.