- Documentation
- Server functions
- setColShapeSize
Function
setColShapeSize
Changes the zone's dimensions (not polygons); the numbers mean the same as in getColShapeSize.
Syntax
bool setColShapeSize(colshape shape, float a [, float b = 0, float c = 0])Arguments
shapecolshape- The zone.
afloat- Radius or width.
bfloat, optional = 0- Tube height, rectangle length or cuboid depth.
cfloat, optional = 0- Cuboid height.
Returns
true on success, false for a polygon.
Example
local zone = createColSphere(0, 0, 0, 5)
setColShapeSize(zone, 15)