setColPolygonHeight
Shared
Limits between which heights a collision polygon detects elements.
bool setColPolygonHeight(element shape, float|bool floor, float|bool ceiling)
Parameters
| Name | Type | Description |
|---|---|---|
| shape | element | A collision shape made by createColPolygon. |
| floor | float|bool | The lowest height, or a boolean for no floor. |
| ceiling | float|bool | The 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