Blockland Forums > Suggestions & Requests
Brick killing RPG.
<< < (4/4)
Zeblote:

--- Quote from: MARBLE MAN on April 16, 2013, 05:32:52 PM ---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);

--- End quote ---
That will kill the brick that was hit directly by the projectile
That will not kill bricks that were blasted away by an explosion
Navigation
Message Index
Previous page

Go to full version