- Documentation
- Shared functions
- createColCuboid
Function
createColCuboid
Creates a box-shaped collision zone from the corner (x, y, z): width along X, depth along Y and height upward.
Syntax
colshape createColCuboid(float fX, float fY, float fZ, float fWidth, float fDepth, float fHeight)Arguments
fXfloat- Corner X.
fYfloat- Corner Y.
fZfloat- Corner Z (bottom).
fWidthfloat- Size along X.
fDepthfloat- Size along Y.
fHeightfloat- Height.
Returns
The new zone.
Example
local room = createColCuboid(2490, -1670, 12, 10, 8, 4)
See also
createColRectangleCreates a rectangular collision zone from the corner (x, y) - with no height limit. The size is given in metres along X and Y.createColBoxCreates a client box zone centred at (x, y, z), rotated around the vertical axis - more convenient thancreateColCuboidwhen a building stands at an angle.