Difference between revisions of "ALL SIDES"

From Second Life Wiki
Jump to navigation Jump to search
(missing desc)
 
(12 intermediate revisions by 5 users not shown)
Line 3: Line 3:
|type=integer
|type=integer
|value=-1
|value=-1
|desc=
|desc=Selects all sides of an object in an applicable function.
|examples
|examples=<source lang="lsl2">
default
{
    state_entry()
    {
        string texture = llGetInventoryName(INVENTORY_TEXTURE, 0);
        llSetTexture(texture, ALL_SIDES);
    }
}</source>
|functions=
|functions=
{{LSL DefineRow||[[llGetAlpha]]|}}
{{LSL DefineRow||[[llGetColor]]|}}
{{LSL DefineRow||[[llGetColor]]|}}
{{LSL DefineRow||[[llGetNumberOfSides]]|}}
{{LSL DefineRow||[[llGetNumberOfSides]]|}}
Line 20: Line 29:
{{LSL DefineRow||[[llSetLinkAlpha]]|}}
{{LSL DefineRow||[[llSetLinkAlpha]]|}}
{{LSL DefineRow||[[llSetLinkColor]]|}}
{{LSL DefineRow||[[llSetLinkColor]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkTexture]]|}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetTexture]]|}}
{{LSL DefineRow||[[llSetTexture]]|}}
Line 25: Line 36:
|events
|events
|cat1=Face
|cat1=Face
|cat2
|cat2=Texture
|cat3
|cat3=Alpha
|cat4
|cat4=Color
}}
}}

Latest revision as of 15:38, 28 October 2023

Description

Constant: integer ALL_SIDES = -1;

The integer constant ALL_SIDES has the value -1

Selects all sides of an object in an applicable function.

Caveats


Examples

default
{
    state_entry()
    {
        string texture = llGetInventoryName(INVENTORY_TEXTURE, 0);
        llSetTexture(texture, ALL_SIDES);
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer ALL_SIDES = -1;