ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setColShapeSize

Function

setColShapeSize

ServerCollision shapesIdentical to MTA:SA

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)

See also