Spring.LevelHeightMap confuses me
Posted: 22 Jan 2013, 16:58
So I'm trying to write some custom terraform lua that will set the height map whenever a certain "terra pylon" building gets built.
the documentation says
but what exactly are the x1,z1 and x2,z2 parameters referencing?
Does it terraform the area between the rectangle defined by these points:
[x1,z1] [x2,z1]
[x1,z2] [x2,z2]
or the rectangle defined by these points?
[x1,z1] [x1+x2,z1]
[x1,z1+z2] [x1+x2,z1+z2]
That is, are the four parameters defining 2 points on a rectangle or are they in the form (cornerX,cornerY,rectangleWidth,rectangleLength)
?
the documentation says
Code: Select all
Spring.LevelHeightMap
( number x1, number z1 [, number x2, number z2], number height )
Does it terraform the area between the rectangle defined by these points:
[x1,z1] [x2,z1]
[x1,z2] [x2,z2]
or the rectangle defined by these points?
[x1,z1] [x1+x2,z1]
[x1,z1+z2] [x1+x2,z1+z2]
That is, are the four parameters defining 2 points on a rectangle or are they in the form (cornerX,cornerY,rectangleWidth,rectangleLength)
?