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

Function

setColShapeRadius

ServerCollision shapesIdentical to MTA:SA

Changes the radius of a sphere, circle or tube zone (negative = 0).

Syntax

bool setColShapeRadius(colshape shape, float radius)

Arguments

shapecolshape
The zone.
radiusfloat
New radius in metres.

Returns

true on success.

Example

local zone = createColSphere(0, 0, 0, 5)
local r = 5
setTimer(function() r = r + 5; setColShapeRadius(zone, r) end, 60000, 0)

See also