Blockland Forums > Modification Help
GetExposedAreaNorth/West/South/East/Top/Bottom
soba:
What do these functions do on the brick?
Amade:
Get the exposed area of the relevant side. If you were to call getExposedAreaNorth on a 2x4 brick was planted with its long side facing north, it would return 4. But if you called it on the same brick with a 2x2 planted immediately to the north of it, it would return 2, as the 2x2 is obscuring 2 of the 4 areas.
soba:
--- Quote from: Amade on October 22, 2011, 05:35:47 PM ---Get the exposed area of the relevant side. If you were to call getExposedAreaNorth on a 2x4 brick was planted with its long side facing north, it would return 4. But if you called it on the same brick with a 2x2 planted immediately to the north of it, it would return 2, as the 2x2 is obscuring 2 of the 4 areas.
--- End quote ---
I thought it ment wether or not a brick was covering that side of the brick, is there any easy way to do this?
Amade:
--- Quote from: soba on October 22, 2011, 06:50:32 PM ---I thought it ment wether or not a brick was covering that side of the brick, is there any easy way to do this?
--- End quote ---
If the exposed area is 0, that side of the brick is completely covered.
soba:
--- Quote from: Amade on October 22, 2011, 08:46:26 PM ---If the exposed area is 0, that side of the brick is completely covered.
--- End quote ---
it returns 0 if there isnt a brick covering that side either