Author Topic: Is it possible to do this?  (Read 700 times)

Is it possible to have a bot place a brick exactly where it dies?  Let's say I killed a bot, and when I did, a 2x2 brick appears right where it died.  Is it possible to do that in Blockland?
« Last Edit: May 15, 2011, 02:29:34 PM by Kiddeh »


Can anyone give me a script that does this?

Code: [Select]
function botstandardarmor::onDeath(%this)
{
    %pos = %this.getPosition();
    plantBrick(%type, %pos);
    parent::onDeath(%this);
}
i can almost guarentee that wont work, but you get the idea.
ill look up more on placing bricks tommorow

Code: [Select]
function botstandardarmor::onDeath(%this)
{
    %pos = %this.getPosition();
    %brick = new fxDTSBrick(){position=%pos};
    %brick.plant();
    parent::onDeath(%this);
}
I think that's how it would go or close to how it would go.