This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
coordinate [2017/05/29 14:36] – justin | coordinate [2017/05/29 14:52] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | A **coordinate** is a scripting data type that represents a 3D position within the current map and is written as //coord[x, y, z]//. The X and Y values correspond to the horizontal position and are measured in tile units, while the Z value corresponds to the vertical position and is measured in voxel units. | + | A **coordinate** is a scripting data type that represents a 3D position within the current map and is written as //coord[x, y, z]//. The X and Y values correspond to the horizontal position and are measured in tile units, while the Z value corresponds to the vertical position and is measured in voxel units. |
+ | |||
+ | {{: | ||
====Example: | ====Example: | ||
Line 15: | Line 17: | ||
====Example: | ====Example: | ||
<code lua> | <code lua> | ||
- | coord[0.5, 0.5, 0] | + | coord[0.5, 0.5, 24] |
</ | </ | ||
- | The example above represents | + | Using the example above as a destination for the [[Move Camera]] function would place the camera |
~~NOTOC~~ | ~~NOTOC~~ |