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

Function

getColPolygonHeight

ServerCollision shapesIdentical to MTA:SA

Returns the polygon zone height range set with setColPolygonHeight.

Syntax

float, float getColPolygonHeight(colshape shape)

Arguments

shapecolshape
A polygon zone.

Returns

Floor and ceiling, or false when unlimited.

Example

local zone = createColPolygon(0, 0, -5, -5, 5, -5, 5, 5)
setColPolygonHeight(zone, 0, 10)
local lo, hi = getColPolygonHeight(zone)

See also