Author Topic: Baseplate detection  (Read 604 times)

How can I check if %cl.brickgroup.getObject(%i) is a baseplate?

%brick.isBaseplate or %brick.isBaseplate()

EDIT: Also if you want to check if its any brick with something built on top of it use %brick.getNumUpBricks().
« Last Edit: March 21, 2011, 05:05:17 AM by Destiny/Zack0Wack0 »

Great, thanks.

And just out of curiosity, does %brick.getNumUpBricks() r check if the brick on the bottom is actually supporting the ones above, or just that there are bricks on top?

It returns how many bricks are on top of the brick you called it on.

Also, I'm not sure, but I think even if something like an 8x16 plate is supporting bricks and is on the ground it is considered a baseplate. That might be only with the .isBaseplate() method, nit the built in variable.