Author Topic: Brick killing RPG.  (Read 1463 times)

package hit{
    function ProjectileNAME::onCollision(%this,%obj,%col,%fade,%pos,%normal)
    {
    parent::onCollision(%this,%obj,%col,%fade,%pos,%normal);
    if(%col.getClassNAme()$="fxDTSBrick" && !%col.isBasePlate)
        %col.fakeKillBrick(); //might be wrong
    }
};
activatepackage(hit);
That will kill the brick that was hit directly by the projectile
That will not kill bricks that were blasted away by an explosion