LSL Wiki Mirror 10-5-2006: llModifyLand

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
llModifyLand(integer action, integer size)

This is a general-purpose terraforming function used to modify the shape of land. It will not work while the agent is offline or outside of the sim containing the script.

action Description
LAND_LEVEL Levels the terrain with each call, raising it up to the current height of the object's center (even if already level). To level terrain at a position lower than the current ground level, the terrain needs to be lowered using LAND_LOWER first, because the object cannot be placed under ground with scripted functions (llSetPos).
LAND_RAISE Raises the terrain with each call, up to the current height of the object's center.
LAND_LOWER Lowers the terrain with each call, down to zero height.
LAND_SMOOTH Smooths the terrain.
LAND_NOISE Randomizes (adds noise to) the terrain.
LAND_REVERT Revert terrain to state.

size Description
LAND_SMALL_BRUSH small brush (2m x 2m)
LAND_MEDIUM_BRUSH medium brush (4m x 4m)
LAND_LARGE_BRUSH large brush (8m x 8m)

To measure the height of the ground, use llGround.

Notes:

Q: Rather than using llDie in the above example, would it work if you set object status to DIE_AT_EDGE?
A: Yes, setting DIE_AT_EDGE to TRUE and STATUS_RETURN_AT_EDGE to FALSE should make the object die.


Functions | Constants | Land
There is no comment on this page. [Display comments/form]