M MY Multiplayer: Wiki
Side
Kind

getColPolygonHeight

Shared

Returns between which heights a collision polygon detects elements.

float, float getColPolygonHeight(element shape)

Parameters

NameTypeDescription
shapeelementA collision shape made by createColPolygon.

Returns

The floor and the ceiling. Without limits, they are the lowest and highest possible numbers.

Example

local floor, ceiling = getColPolygonHeight(lot)
outputDebugString(("From %.1f to %.1f"):format(floor, ceiling))

See also