Blockland Forums > Modification Help
Placing a brick directly atop another brick server-sided.
phflack:
i think he wants to find the coordinates of the first brick, then add to the Z to build on top
Headcrab Zombie:
I had this problem with the bricktext event, I needed the StaticShape to always be a little bit above the top of the brick
Here's what I set for position inside the 'new StaticShape...' :
--- Code: ---position = vectorAdd(%this.getPosition(),"0 0" SPC %this.getDatablock().brickSizeZ/9 + "0.166");
--- End code ---
Maybe that, minus the '+ "0.166"' with %this being the brick your building on top of?
otto-san:
That helps a lot, it was exactly what I was looking for, thanks!