- Documentation
- Server functions
- getColShapeSize
Function
getColShapeSize
Returns the zone's dimensions depending on its shape: sphere/circle - radius; tube - radius and height; rectangle - width and length; cuboid - width, depth, height; polygon - height.
Syntax
float... getColShapeSize(colshape shape)Arguments
shapecolshape- The zone.
Returns
The dimensions, or false.
Example
local tube = createColTube(0, 0, 0, 3, 8)
local radius, height = getColShapeSize(tube)