Skip to content

Commit

Permalink
Fixed MissionVehicle not swapping back to default
Browse files Browse the repository at this point in the history
  • Loading branch information
Hampo committed Jul 1, 2024
1 parent 332ba9d commit e3e5042
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Randomiser/Resources/Modules/Vehicles/MissionVehicle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ RandomMissionVehicle:AddMissionHandler(function(LevelNumber, MissionNumber, Miss
Index = Index + 1
end


for i=#functions,1,-1 do
if functions[i].Name:lower() == "closestage" then
MissionInit:InsertFunction(i, "SwapInDefaultCar")
break
end
end

if Settings.RemoveOutOfVehicle then
local toRemove = {}
local toRemoveN = 0
Expand Down

0 comments on commit e3e5042

Please sign in to comment.