Skip to content

Commit

Permalink
Fix ArmoredSUV gunner glitch again
Browse files Browse the repository at this point in the history
  • Loading branch information
AirwavesMan committed May 26, 2021
1 parent f7668bc commit aeafb3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SQF/dayz_code/compile/fn_damageActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (_inVehicle) then {
local _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" != 0} && {_vehicle emptyPositions "Gunner" == 0}) then {
if (_vehicle isKindOf "ArmoredSUV_DZE_Base_PMC" && {_vehicle animationPhase "HideGun_01" != 0} && {_vehicle emptyPositions "Gunner" == 0}) then {
//If player enters gunner's seat while hatch is closed then move them out
(_vehicle turretUnit [0]) action ["moveToCargo",_vehicle,(count assignedCargo _vehicle)];
};
Expand Down

0 comments on commit aeafb3b

Please sign in to comment.