Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit bb8c165

Browse files
committed
Make automovers stop affecting actors with <= 0 health, even if they're still valid mos
1 parent be0beb5 commit bb8c165

File tree

1 file changed

+1
-1
lines changed
  • Data/Base.rte/Scenes/Objects/Bunkers/BunkerSystems/Automovers/Controller

1 file changed

+1
-1
lines changed

Data/Base.rte/Scenes/Objects/Bunkers/BunkerSystems/Automovers/Controller/Controller.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function Update(self)
187187
if self.actorMovementUpdateTimer:IsPastSimTimeLimit() then
188188
for actorUniqueID, actorData in pairs(self.affectedActors) do
189189
local actor = actorData.actor;
190-
if not MovableMan:ValidMO(actor) or not self.combinedAutomoverArea:IsInside(actor.Pos) then
190+
if not MovableMan:ValidMO(actor) or actor.Health <= 0 or not self.combinedAutomoverArea:IsInside(actor.Pos) then
191191
self:removeActorFromAutomoverTable(actor, actorUniqueID);
192192
else
193193
if actor:NumberValueExists("Automover_LeaveAutomoverNetwork") then

0 commit comments

Comments
 (0)