Hey, if you're gonna post just to say that other topics exist, at least link those topics.
@OP: The cleanest way to do this is with a quick Lua script attached to your TDExplosive, something like this:
Code:
function Create(self)
self.alliedTeam = -1;
self.enableDeploy = false;
end
function Update(self)
if self.ID ~= self.RootID then
local actor = MovableMan:GetMOFromID(self.RootID);
if MovableMan:IsActor(actor) then
self.alliedTeam = ToActor(actor).Team;
end
end
if self:IsActivated() and self.ID == self.RootID then
self.enableDeploy = true;
end
end
function Destroy(self)
if self.enableDeploy == true then
self.deployActor = CreateACrab("Whatever your crab name is");
self.deployActor.Team = self.alliedTeam;
self.deployActor.Pos = self.Pos;
self.deployActor.AIMode = 1;
MovableMan:AddActor(self.deployActor);
end
end
It's untested, so it may not work 100% guaranteed. There are also INI-only methods to gib actors as well, but they're a lot hackier.