- Documentation
- Shared functions
- getColShapeType
Function
getColShapeType
Returns the collision zone type. On the client a number: 0 circle, 1 cuboid (also createColBox/createColCube), 2 sphere, 3 rectangle, 4 polygon, 5 tube. On the server a name: "circle", "cuboid", "sphere", "rectangle", "polygon", "tube".
Syntax
int/string getColShapeType(colshape shape)Arguments
shapecolshape- The zone.
Returns
The zone type, or false.
Example
local zone = createColSphere(0, 0, 0, 5)
outputDebugString(tostring(getColShapeType(zone)))