Blockland Forums > Modification Help
Finding supported bricks
(1/6) > >>
Treynolds416:
Is there a default function for finding which and how many bricks are currently supported by another brick?
I could do this by using getUpBrick() and getDownBrick(), but I don't want to jump straight into a complicated process like this if there already is a pre-made function that does what I'm looking for.
Daenth:
Looking through the duplicator code, I found this: .getNumUpBricks(); and .getNumDownBricks();.
Treynolds416:

--- Quote from: Daenth on April 27, 2012, 08:20:21 PM ---Looking through the duplicator code, I found this: .getNumUpBricks(); and .getNumDownBricks();.

--- End quote ---
I'm aware of these. They count the bricks directly above and below the selected brick. They don't say anything about support
I said that I could do it this way, but it wouldn't be as simple as a premade function.
Daenth:

--- Quote from: Treynolds416 on April 27, 2012, 08:22:01 PM ---I'm aware of these. They count the bricks directly above and below the selected brick. They don't say anything about support
I said that I could do it this way, but it wouldn't be as simple as a premade function.

--- End quote ---
Ah, woops my bad. But doesn't the duplicator duplicate every brick being supported by the original brick?
Treynolds416:

--- Quote from: Daenth on April 27, 2012, 08:25:09 PM ---Ah, woops my bad. But doesn't the duplicator duplicate every brick being supported by the original brick?

--- End quote ---
Sort of. It appears that it only does that when duping the base. If you hit a brick that is supported from above it doesn't work.
Navigation
Message Index
Next page

Go to full version