Colshape
Jump to navigation
Jump to search
Colshapes are invisible areas that can be used to trigger certain actions when a player or element enters them. For example, you could place a colshape around a base so that as soon as an enemy enters the colshape, an alarm is triggered.
Colshapes are available in the following shapes:
- Circle
- Cuboid
- Sphere
- Rectangle
- Tube
Collision shape functions
- addColPolygonPoint
- createColCircle
- createColCuboid
- createColPolygon
- createColRectangle
- createColSphere
- createColTube
- getColPolygonHeight
- getColPolygonPoints
- getColPolygonPointPosition
- getColShapeType
- getColShapeRadius
- getColShapeSize
- getElementColShape
- getElementsWithinColShape
- isElementWithinColShape
- isInsideColShape
- removeColPolygonPoint
- setColPolygonHeight
- setColPolygonPointPosition
- setColShapeRadius
- setColShapeSize