mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix issues with action Eject on non local vehicles (#8291)
This commit is contained in:
parent
0b7aa7f3e5
commit
08eadc7c19
@ -47,17 +47,22 @@ unassignVehicle _unit;
|
||||
[_unit] orderGetIn false;
|
||||
|
||||
TRACE_1("Ejecting", alive _unit);
|
||||
_unit action ["Eject", vehicle _unit];
|
||||
private _vehicle = vehicle _unit;
|
||||
if (local _vehicle) then {
|
||||
_unit action ["Eject", _vehicle];
|
||||
// Failsafe - sometimes eject alone doesn't work, but moveOut does
|
||||
[{
|
||||
params ["_unit"];
|
||||
|
||||
// Failsafe - sometimes eject alone doesn't work, but moveOut does
|
||||
[{
|
||||
params ["_unit"];
|
||||
if (vehicle _unit != _unit) then {
|
||||
WARNING_1("UnloadPersonLocal [%1] did not eject normally",_unit);
|
||||
moveOut _unit;
|
||||
};
|
||||
}, [_unit], 1] call CBA_fnc_waitAndExecute;
|
||||
|
||||
if (vehicle _unit != _unit) then {
|
||||
WARNING_1("UnloadPersonLocal [%1] did not eject normally",_unit);
|
||||
moveOut _unit;
|
||||
};
|
||||
}, [_unit], 1] call CBA_fnc_waitAndExecute;
|
||||
} else {
|
||||
moveOut _unit;
|
||||
};
|
||||
|
||||
[{
|
||||
params ["_unit", "_emptyPos"];
|
||||
|
Loading…
Reference in New Issue
Block a user