Difference between revisions of "LlModifyLand"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 9: Line 9:
|spec
|spec
|caveats=*Playing with this command, I have found that the LAND_SMALL_BRUSH edits a 4m x 4m area. The LAND_MEDIUM_BRUSH and the LAND_LARGE_BRUSH, both edit an 8m x 8m area. However using 0 instead of LAND_SMALL_BRUSH will edit a 2m x 2m area. I have bug reported this, but until it gets fixed, it should be noted. correct values for the brushes are 0, 1 and 2, not 1, 2, and 3. - [[User:Beverly Larkin|Bev]]
|caveats=*Playing with this command, I have found that the LAND_SMALL_BRUSH edits a 4m x 4m area. The LAND_MEDIUM_BRUSH and the LAND_LARGE_BRUSH, both edit an 8m x 8m area. However using 0 instead of LAND_SMALL_BRUSH will edit a 2m x 2m area. I have bug reported this, but until it gets fixed, it should be noted. correct values for the brushes are 0, 1 and 2, not 1, 2, and 3. - [[User:Beverly Larkin|Bev]]
|constants={{{!}}
|constants=
{{!}}-valign="top"
<div>
{{!}}
<div style="width:auto; height:auto; display:inline;">
{{{!}} {{Prettytable}}
<div style="display:table-cell; vertical-align:top;" valign="top">
{{{!}} border="2" cellspacing="0" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#F9F9F9; font-size:90%; empty-cells:show;"
 
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
!colspan="2"{{!}}Brush
!colspan="2"{{!}}Brush
!Size
!Size
{{!}}-
{{!}}-
{{!}}{{LSLG|LAND_SMALL_BRUSH}}
{{!}}<s>LAND_SMALL_BRUSH</s>
{{!}}0
{{!}}0
{{!}}2m x 2m
{{!}}2m x 2m
{{!}}-
{{!}}-
{{!}}{{LSLG|LAND_MEDIUM_BRUSH}}
{{!}}<s>LAND_MEDIUM_BRUSH</s>
{{!}}1
{{!}}1
{{!}}4m x 4m
{{!}}4m x 4m
{{!}}-
{{!}}-
{{!}}{{LSLG|LAND_LARGE_BRUSH}}
{{!}}<s>LAND_LARGE_BRUSH</s>
{{!}}2
{{!}}2
{{!}}8m x 8m
{{!}}8m x 8m
{{!}}-
{{!}}colspan="3"{{!}}<small>The constant values in the compiler are wrong, use values instead.</small>
{{!}}}
{{!}}}
{{!}}
</div>
{{{!}} {{Prettytable}}
</div>
<div style="width:auto; height:auto; display:inline;">
<div style="display:table-cell; vertical-align:top;" valign="top">
{{{!}} border="2" cellspacing="0" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#F9F9F9; font-size:90%; empty-cells:show;"
 
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
!colspan="2"{{!}}Action
!colspan="2"{{!}}Action
Line 47: Line 55:
{{!}}Lowers the land
{{!}}Lowers the land
{{!}}}
{{!}}}
{{!}}
</div>
{{{!}} {{Prettytable}}
</div>
<div style="width:auto; height:auto; display:inline;">
<div style="display:table-cell; vertical-align:top;" valign="top">
{{{!}} border="2" cellspacing="0" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#F9F9F9; font-size:90%; empty-cells:show;"
 
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
!colspan="2"{{!}}Action
!colspan="2"{{!}}Action
Line 65: Line 77:
{{!}}Restores to baked value
{{!}}Restores to baked value
{{!}}}
{{!}}}
{{!}}}
</div>
</div>
</div>
|examples
|examples
|helpers
|helpers

Revision as of 15:12, 3 November 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
LAND_SMALL_BRUSH 0 2m x 2m
LAND_MEDIUM_BRUSH 1 4m x 4m
LAND_LARGE_BRUSH 2 8m x 8m
The constant values in the compiler are wrong, use values instead.
Action Description
LAND_LEVEL 0 Levels on prim center
LAND_RAISE 1 Raises the land
LAND_LOWER 2 Lowers the land
Action Description
LAND_SMOOTH 3 Smooths the land
LAND_NOISE 4 Makes the land rough
LAND_REVERT 5 Restores to baked value

Caveats

  • Playing with this command, I have found that the LAND_SMALL_BRUSH edits a 4m x 4m area. The LAND_MEDIUM_BRUSH and the LAND_LARGE_BRUSH, both edit an 8m x 8m area. However using 0 instead of LAND_SMALL_BRUSH will edit a 2m x 2m area. I have bug reported this, but until it gets fixed, it should be noted. correct values for the brushes are 0, 1 and 2, not 1, 2, and 3. - Bev

Examples

Deep Notes

Signature

function void llModifyLand( integer action, integer brush );