| Blockland Forums > Modification Help |
| Finding supported bricks |
| << < (5/6) > >> |
| Treynolds416:
Oh I see now The way you got all the possible supportees is wrong I'm pretty sure, but the rest looks like it would work great. Thanks! Also, I've been working on an alternate way to do this without doing anything to the bricks. I'll post it when it's done. |
| Slicks555:
--- Quote from: Treynolds416 on April 30, 2012, 08:47:07 PM ---The way you got all the possible supportees is wrong I'm pretty sure, but the rest looks like it would work great. Thanks! --- End quote --- Yeah, I guess you're right. Supported bricks can be below it. Run a second loop on the bricks under it. Also, this will only get 1 layer deep. You'd have to run this function on EVERY brick that's returned as supported to get the full list of supported bricks. |
| Treynolds416:
--- Quote from: Slicks555 on April 30, 2012, 08:49:13 PM ---Yeah, I guess you're right. Supported bricks can be below it. Run a second loop on the bricks under it. Also, this will only get 1 layer deep. You'd have to run this function on EVERY brick that's returned as supported to get the full list of supported bricks. --- End quote --- Yep, that's exactly what I meant |
| phflack:
--- Quote from: Greek2me on April 28, 2012, 02:18:31 PM ---Path-to-Ground %brick.hasPathToGround() - ()Returns true if brick is attached to a baseplate. --- End quote --- could that method be modified so that floating baseplates could be created, which act as a building surface? |
| Treynolds416:
I think so. That's why I'm using if(%brick.getDistanceFromGround == 0) |
| Navigation |
| Message Index |
| Next page |
| Previous page |