1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

gmod_subway_base.

Добавлена очистка в таблице FailSim
This commit is contained in:
kosmik641
2025-11-04 15:13:49 +03:00
parent c733ca4909
commit 4e80f8166c

View File

@@ -303,6 +303,11 @@ function ENT:GetWagonNumber()
end
-- Remove entity
function ENT:OnRemove()
-- Remove FailSim objects
for k,v in pairs(self.Systems) do
if FailSim.Objects[v] then FailSim.Objects[v] = nil end
end
-- Remove all linked objects
constraint.RemoveAll(self)
if self.TrainEntities then