Blockland Forums > Suggestions & Requests
Brick killing RPG.
<< < (2/4) > >>
Zeblote:
Well, to quickly archieve fake killed bricks being really killed, put this in console:


--- Code: ---package reallykill{function fxdtsbrick::onfakedeath(%this){%this.killbrick();}};activatepackage(reallykill);

--- End code ---

There doesn't seem to be much of a way to figure out what explosion blew up the brick so you cant make it weapon specific
Or I'm being stupid andn ot seeing the function
Thé Lord Tony:

--- Quote from: Zeblote on April 16, 2013, 04:15:29 PM ---
--- Code: ---package reallykill{function fxdtsbrick::onfakedeath(%this){%this.killbrick();}};activatepackage(reallykill);

--- End code ---

--- End quote ---

Um, how can I just put this into a weapon script? I was trying to edit the mas heavy rocket launcher.
MARBLE MAN:

--- Quote from: Thé Lord Tony on April 16, 2013, 04:33:31 PM ---Um, how can I just put this into a weapon script? I was trying to edit the mas heavy rocket launcher.

--- End quote ---
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
    }
};
Thé Lord Tony:
It's not working for me.
Bester Bageler:
Make it only kill bricks of yours and people you have full trust of, in a minigame it should be only the hosts. A gamemode with this could be neat where you get points for destroying bricks (and players). At the end of the round the player with the most points wins and the build reloads.
Navigation
Message Index
Next page
Previous page

Go to full version