Skip to content

Commit

Permalink
Make bots unflip flipped vehicles upon repair
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparker95 committed Nov 6, 2020
1 parent b2b91c3 commit b6ba241
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AI/Misc/repairFunctions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ AI_misc_fnc_repairWithoutEngineer = {

// Also refuel the car
_veh setFuel 0.8;

// Unflip if flipped
if ([_veh] call misc_fnc_isVehicleFlipped) then {
_veh setVectorUp [0, 0, 1];
};
};

// Returns true if any wheel or track is damaged on vehicle
Expand Down

0 comments on commit b6ba241

Please sign in to comment.