mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Offload ejecting to unloadPerson
This commit is contained in:
@ -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,
|
// 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
|
// therefor we force it to select the primairy weapon before going unconscious
|
||||||
if ((vehicle _unit) isKindOf "StaticWeapon") then {
|
if ((vehicle _unit) isKindOf "StaticWeapon") then {
|
||||||
moveOut _unit;
|
[_unit] call EFUNC(common,unloadPerson);
|
||||||
unassignVehicle _unit;
|
|
||||||
//_unit action ["eject", vehicle _unit];
|
|
||||||
};
|
};
|
||||||
if (animationState _unit in ["ladderriflestatic","laddercivilstatic"]) then {
|
if (animationState _unit in ["ladderriflestatic","laddercivilstatic"]) then {
|
||||||
_unit action ["ladderOff", (nearestBuilding _unit)];
|
_unit action ["ladderOff", (nearestBuilding _unit)];
|
||||||
|
Reference in New Issue
Block a user