Add extra animations to ArmoredSUV, MV22, UH1Y

This commit is contained in:
ebaydayz
2016-11-26 21:14:02 -05:00
parent 18616828f3
commit 6cdc0a51c9
12 changed files with 194 additions and 56 deletions

View File

@@ -22,6 +22,12 @@ if (_inVehicle) then {
_driver = driver (vehicle player);
if (str (_assignedRole) != str (r_player_lastSeat)) then {
call r_player_removeActions2;
if (_vehicle isKindOf "ArmoredSUV_Base_PMC" && {_vehicle animationPhase "HideGun_01" == 1} && {_vehicle emptyPositions "Gunner" == 0}) then {
(_vehicle turretUnit [0]) action ["moveToCargo",_vehicle,(count assignedCargo _vehicle)];
_vehicle animate ["HideGun_01",0];
_vehicle animate ["CloseCover1",0];
_vehicle animate ["CloseCover2",0];
};
};
if (!r_player_unconscious && !r_action2) then {
r_player_lastSeat = _assignedRole;