Author Topic: %brick.isPlanted not robust  (Read 1884 times)

I would suggest deducting the money or whatever from them, and then packaging the function that kills the brick to refund them.
I would shy away from that, there are better ways to do this and that method can have worse reprocussions if something bugs out.

.isPlanted() is true even on killed bricks. Try if(%brick.isPlanted() && %brick.isDead()) instead.

Badspot

  • Administrator
Technically, the brick is planted.  The script based trust system then destroys it aferward.  Use onTrustCheckFinished instead.  The Brick_Large_Cubes default add-on has examples of this.

Technically, the brick is planted.  The script based trust system then destroys it aferward.  Use onTrustCheckFinished instead.  The Brick_Large_Cubes default add-on has examples of this.
That helps.