Skip to content

Commit

Permalink
Possible fix for survivors stuck in cars
Browse files Browse the repository at this point in the history
  • Loading branch information
bsarsgard committed Jul 17, 2021
1 parent 6ea461f commit 7334f14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion media/lua/client/6_Tasks/FollowTask.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ function FollowTask:update()

end
elseif (self.FollowChar:getVehicle() ~= nil) and (self.parent:Get():getVehicle() ~= nil) then
ISTimedActionQueue.add(ISSwitchVehicleSeat:new(self.parent:Get(), self.MySeat))
--print(self.parent:getName().." switch seat")
--ISTimedActionQueue.add(ISSwitchVehicleSeat:new(self.parent:Get(), self.MySeat))
elseif (self.FollowChar:getVehicle() == nil) and (self.parent:Get():getVehicle() ~= nil) then
print(self.parent:getName().." exit vehicle")
self.MySeat = -1
ISTimedActionQueue.add(ISExitVehicle:new(self.parent:Get()))
self.parent:Wait(1)
Expand Down

0 comments on commit 7334f14

Please sign in to comment.