- Documentation
- Shared functions
- createColTube
Function
createColTube
Creates a cylinder-shaped collision zone: a circle of radius radius from height z up by height metres.
Syntax
colshape createColTube(float fX, float fY, float fZ, float fRadius, float fHeight)Arguments
fXfloat- Base centre X.
fYfloat- Base centre Y.
fZfloat- Base Z.
fRadiusfloat- Radius in metres.
fHeightfloat- Height in metres.
Returns
The new zone.
Example
local tower = createColTube(1544, -1353, 0, 20, 330)
See also
createColSphereCreates a sphere-shaped collision zone. The zone is invisible; when a player enters or leaves it,onColShapeHit/onColShapeLeavefire (server) oronClientColShapeHit/onClientColShapeLeave(client). A zone can be attached to an element (attachElements) so it moves with it.createColCircleCreates a circle-shaped collision zone on the map - with no height limit (it covers everything above and below the circle).