mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
offload spawnControlObject on controllable death to gameplay modules
This commit is contained in:
parent
ccd30a19cc
commit
14c8ea28c8
|
|
@ -268,16 +268,10 @@ function ShapeBaseData::onDestroyed(%this, %obj, %state)
|
|||
if (%obj.getMountedImage(%slot))
|
||||
%obj.setImageTrigger(%slot, false);
|
||||
}
|
||||
|
||||
if (%obj.client)
|
||||
{
|
||||
%obj.client.player = 0;
|
||||
%obj.client.schedule($DeathDuration, "spawnControlObject");
|
||||
}
|
||||
// Schedule corpse removal. Just keeping the place clean.
|
||||
%obj.schedule($CorpseTimeoutValue - 1000, "startFade", 1000, 0, true);
|
||||
%obj.schedule($CorpseTimeoutValue, "delete");
|
||||
%obj.schedule($CorpseTimeoutValue,"blowUp");
|
||||
%obj.schedule($CorpseTimeoutValue+32, "delete");
|
||||
}
|
||||
|
||||
function ShapeBaseData::onRemove(%this, %obj)
|
||||
|
|
|
|||
Loading…
Reference in a new issue