Difference between revisions of "LlModifyLand"

From Second Life Wiki
Jump to navigation Jump to search
Line 13: Line 13:
<div style="width:auto; height:auto; display:inline;">
<div style="width:auto; height:auto; display:inline;">
<div style="display:table-cell; vertical-align:top;" valign="top">
<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; vertical-align:top;"
{{{!}} class="sortable" 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; vertical-align:top;"
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
!colspan="2"{{!}}Action
!Action
!Description
!title="Value"{{!}}
!class="unsortable"{{!}}Description
{{!}}-
{{!}}-
{{!}}{{LSLG|LAND_LEVEL}}
{{!}}{{LSL Const|LAND_LEVEL|integer|0|c=Levels on prim center}}
{{!}}0
{{!}}{{#var:value}}
{{!}}Levels on prim center
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSLG|LAND_RAISE}}
{{!}}{{LSL Const|LAND_RAISE|integer|1|c=Raises the land}}
{{!}}1
{{!}}{{#var:value}}
{{!}}Raises the land
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSLG|LAND_LOWER}}
{{!}}{{LSL Const|LAND_LOWER|integer|2|c=Lowers the land}}
{{!}}2
{{!}}{{#var:value}}
{{!}}Lowers the land
{{!}}{{#var:comment}}
{{!}}}
</div>
</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; vertical-align:top;"
{{!}}-{{Hl2}}
!colspan="2"{{!}}Action
!Description
{{!}}-
{{!}}-
{{!}}{{LSLG|LAND_SMOOTH}}
{{!}}{{LSL Const|LAND_SMOOTH|integer|3|c=Smooths the land}}
{{!}}3
{{!}}{{#var:value}}
{{!}}Smooths the land
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSLG|LAND_NOISE}}
{{!}}{{LSL Const|LAND_NOISE|integer|4|c=Makes the land rough}}
{{!}}4
{{!}}{{#var:value}}
{{!}}Makes the land rough
{{!}}{{#var:comment}}
{{!}}-
{{!}}-
{{!}}{{LSLG|LAND_REVERT}}
{{!}}{{LSL Const|LAND_REVERT|integer|5|c=Restores to baked value}}
{{!}}5
{{!}}{{#var:value}}
{{!}}Restores to baked value
{{!}}{{#var:comment}}
{{!}}}
{{!}}}
</div>
</div>
Line 55: Line 47:
<div style="width:auto; height:auto; display:inline;">
<div style="width:auto; height:auto; display:inline;">
<div style="display:table-cell; vertical-align:top;" valign="top">
<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; vertical-align:top;"
{{{!}} class="sortable" 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; vertical-align:top;"
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
!colspan="2"{{!}}Brush
!Brush
!Size
!{{HoverText|Value|Use these instead of the constant names}}
! class="unsortable" {{!}} Size
{{!}}-
{{!}}-
{{!}}<s>LAND_SMALL_BRUSH</s>
{{!}}<s>{{LSL Const|LAND_SMALL_BRUSH|integer|1|c=Should do 2m x 2m but does 4m x 4m}}</s>
{{!}}0
{{!}}0
{{!}}2m x 2m
{{!}}2m x 2m
{{!}}-
{{!}}-
{{!}}<s>LAND_MEDIUM_BRUSH</s>
{{!}}<s>{{LSL Const|LAND_MEDIUM_BRUSH|integer|2|c=Should do 4m x 4m but does 8m x 8m}}</s>
{{!}}1
{{!}}1
{{!}}4m x 4m
{{!}}4m x 4m
{{!}}-
{{!}}-
{{!}}<s>LAND_LARGE_BRUSH</s>
{{!}}<s>{{LSL Const|LAND_LARGE_BRUSH|integer|3|c=8m x 8m}}</s>
{{!}}2
{{!}}2
{{!}}8m x 8m
{{!}}8m x 8m
{{!}}-
{{!}}-
{{!}}colspan="3"{{!}}<small>The constant values in the compiler are wrong, use values instead.</small>
{{!}}colspan="3"{{!}}<small>The constant values in the compiler are wrong.<br/>Use these values instead.</small>
{{!}}}
{{!}}}
</div>
</div>

Revision as of 17:15, 3 November 2007

Summary

Function: llModifyLand( integer action, integer brush );

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.

Action Description
LAND_LEVEL 0 Levels on prim center
LAND_RAISE 1 Raises the land
LAND_LOWER 2 Lowers the land
LAND_SMOOTH 3 Smooths the land
LAND_NOISE 4 Makes the land rough
LAND_REVERT 5 Restores to baked value
Brush Value 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 these values instead.

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
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function void llModifyLand( integer action, integer brush );