Offload ejecting to unloadPerson

This commit is contained in:
KoffeinFlummi 2015-05-01 01:35:50 +02:00
parent f7f416c8d3
commit 98e44e86d8

View File

@ -56,9 +56,7 @@ if !([_unit] call EFUNC(common,isPlayer)) then {
// If a unit has the launcher out, it will sometimes start selecting the primairy weapon while unconscious,
// therefor we force it to select the primairy weapon before going unconscious
if ((vehicle _unit) isKindOf "StaticWeapon") then {
moveOut _unit;
unassignVehicle _unit;
//_unit action ["eject", vehicle _unit];
[_unit] call EFUNC(common,unloadPerson);
};
if (animationState _unit in ["ladderriflestatic","laddercivilstatic"]) then {
_unit action ["ladderOff", (nearestBuilding _unit)];