mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Captives - Load into back seats first (#8973)
Reverses the list of seats for loading captives
This commit is contained in:
parent
4943b2119d
commit
131b0b9472
@ -20,18 +20,21 @@ TRACE_1("params", _vehicle);
|
||||
|
||||
scopeName "main";
|
||||
|
||||
private _seats = fullCrew [_vehicle, "", true];
|
||||
reverse _seats;
|
||||
|
||||
{
|
||||
_x params ["_unit", "_role", "_cargoIndex", "_turretPath", "_isPersonTurret"];
|
||||
if (isNull _unit && {_role == "cargo"} && {_cargoIndex > -1} && {!_isPersonTurret}) then {
|
||||
[_cargoIndex, false] breakOut "main";
|
||||
};
|
||||
} forEach (fullCrew [_vehicle, "", true]);
|
||||
} forEach _seats;
|
||||
|
||||
{
|
||||
_x params ["_unit", "_role", "_cargoIndex", "_turretPath", "_isPersonTurret"];
|
||||
if (isNull _unit && {_cargoIndex > -1}) then {
|
||||
[_cargoIndex, true] breakOut "main";
|
||||
};
|
||||
} forEach (fullCrew [_vehicle, "", true]);
|
||||
} forEach _seats;
|
||||
|
||||
[-1, false]
|
||||
|
Loading…
Reference in New Issue
Block a user