Difference between revisions of "LlModifyLand"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{LSLFunctionAll|func_id=159|func_sleep=0.0|func_energy=10.0|func=llModifyLand|p1_type=integer|p1_name=action|p2_type=integer|p2_name=size|func_footnote=Modify land with action (LAND_LEVEL, LAND_RAISE, LAND_LOWER, LAND_SMOOTH, LAND_NOISE, LAND_REVERT)|func_footnote=on size (LAND_SMALL_BRUSH, LAND_MEDIUM_BRUSH, LAND_LARGE_BRUSH)|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function
|func_id=159|func_sleep=0.0|func_energy=10.0
|func=llModifyLand
|p1_type=integer|p1_name=action|p1_desc=LAND_* flag
|p2_type=integer|p2_name=brush|p2_desc=LAND_*_BRUSH flag
|func_footnote=The position of the prim is used to determine the input for various flags.
|func_desc=Modify land with '''action''' on '''brush'''
|return_text
|spec
|caveats
|constants={{{!}}
{{!}}
{{{!}} {{Prettytable}}
!Brush
!Size
!Value
{{!}}-
{{!}}{{LSLG|LAND_SMALL_BRUSH}}
{{!}}2m x 2m
{{!}}1
{{!}}-
{{!}}{{LSLG|LAND_MEDIUM_BRUSH}}
{{!}}4m x 4m
{{!}}2
{{!}}-
{{!}}{{LSLG|LAND_LARGE_BRUSH}}
{{!}}8m x 8m
{{!}}3
{{!}}}
{{!}}
{{{!}} {{Prettytable}}
!Action
!Description
!Value
{{!}}-
{{!}}{{LSLG|LAND_LEVEL}}
{{!}}Levels on prim center
{{!}}0
{{!}}-
{{!}}{{LSLG|LAND_RAISE}}
{{!}}Raises the land
{{!}}1
{{!}}-
{{!}}{{LSLG|LAND_LOWER}}
{{!}}Lowers the land
{{!}}2
{{!}}}
{{!}}
{{{!}} {{Prettytable}}
!Action
!Description
!Value
{{!}}-
{{!}}{{LSLG|LAND_SMOOTH}}
{{!}}Smooths the land
{{!}}3
{{!}}-
{{!}}{{LSLG|LAND_NOISE}}
{{!}}Makes the land rough
{{!}}4
{{!}}-
{{!}}{{LSLG|LAND_REVERT}}
{{!}}Restores to baked value.
{{!}}5
{{!}}}
{{!}}}
|examples
|helpers
|also_functions
|also_tests
|also_events
|also_articles
|notes
|cat1
|cat2
|cat3
|cat4
}}

Revision as of 18:58, 20 February 2007

Summary

Function: llModifyLand( integer action, integer brush );
0.0 Forced Delay
10.0 Energy

Modify land with action on brush

• integer action LAND_* flag
• integer brush LAND_*_BRUSH flag

The position of the prim is used to determine the input for various flags.

Brush Size Value
LAND_SMALL_BRUSH 2m x 2m 1
LAND_MEDIUM_BRUSH 4m x 4m 2
LAND_LARGE_BRUSH 8m x 8m 3
Action Description Value
LAND_LEVEL Levels on prim center 0
LAND_RAISE Raises the land 1
LAND_LOWER Lowers the land 2
Action Description Value
LAND_SMOOTH Smooths the land 3
LAND_NOISE Makes the land rough 4
LAND_REVERT Restores to baked value. 5

Examples

Deep Notes

Signature

function void llModifyLand( integer action, integer brush );