Re: Detached attachables being deleted
Is that in Update or Create? The ToDelete = false needs to be in the same block as the thruster positioning stuff.
Also, is that script chunk in Update or Create? It should look something like:
Code:
function Create(self)
for i = 1,MovableMan:GetMOIDCount()-1 do
self.part = MovableMan:GetMOFromID(i);
if self.part.PresetName == "Blah da Blah" and self.part.ClassName == "AEmitter" then
self.firstengine = self.part;
elseif self.part.PresetName == "Blah da Blah second" and self.part.ClassName == "AEmitter" then
self.secondengine = self.part;
end
end
end
function Update(self)
if self.firstengine ~= nil and self.firstengine.ID ~= 255 then
self.firstengine.Pos = self.Pos + Vector(10,4):RadRotate(self.RotAngle)
self.firstengine.Vel = self.Vel;
self.firstengine.ToDelete = false; ------------ "ToDelete = false" here
end
if self.secondengine ~= nil and self.secondengine.ID ~= 255 then
-- <blah>
end
if self.controlledthingy == UP or whatever then
if self.firstengine ~= nil and self.firstengine.ID ~= 255 then
<force application>
end
if self.secondengine ~= nil and self.secondengine.ID ~= 255 then
<force application>
end
end
end