mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
@@ -303,6 +303,11 @@ function ENT:GetWagonNumber()
|
|||||||
end
|
end
|
||||||
-- Remove entity
|
-- Remove entity
|
||||||
function ENT:OnRemove()
|
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
|
-- Remove all linked objects
|
||||||
constraint.RemoveAll(self)
|
constraint.RemoveAll(self)
|
||||||
if self.TrainEntities then
|
if self.TrainEntities then
|
||||||
|
|||||||
Reference in New Issue
Block a user