M MY Multiplayer: Wiki
Side
Kind

setColPolygonHeight

Shared

Limits between which heights a collision polygon detects elements.

bool setColPolygonHeight(element shape, float|bool floor, float|bool ceiling)

Parameters

NameTypeDescription
shapeelementA collision shape made by createColPolygon.
floorfloat|boolThe lowest height, or a boolean for no floor.
ceilingfloat|boolThe highest height, or a boolean for no ceiling.

Returns

true once the heights are set.

If the floor is above the ceiling, the two are swapped. On the server, the change reaches the clients.

Example

setColPolygonHeight(lot, 10, false) -- from 10 m up, with no ceiling

See also