Difference between revisions of "ALL SIDES"
Jump to navigation
Jump to search
Frionil Fang (talk | contribs) (missing desc) |
|||
(14 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||[[llGetNumberOfSides]]|}} | |||
{{LSL DefineRow||[[llGetPrimitiveParams]]|}} | |||
{{LSL DefineRow||[[llGetTexture]]|}} | |||
{{LSL DefineRow||[[llGetTextureOffset]]|}} | |||
{{LSL DefineRow||[[llGetTextureRot]]|}} | |||
{{LSL DefineRow||[[llGetTextureScale]]|}} | |||
{{LSL DefineRow||[[llOffsetTexture]]|}} | |||
{{LSL DefineRow||[[llRotateTexture]]|}} | |||
{{LSL DefineRow||[[llScaleTexture]]|}} | |||
{{LSL DefineRow||[[llSetAlpha]]|}} | |||
{{LSL DefineRow||[[llSetColor]]|}} | |||
{{LSL DefineRow||[[llSetLinkAlpha]]|}} | |||
{{LSL DefineRow||[[llSetLinkColor]]|}} | |||
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}} | |||
{{LSL DefineRow||[[llSetLinkTexture]]|}} | |||
{{LSL DefineRow||[[llSetPrimitiveParams]]|}} | |||
{{LSL DefineRow||[[llSetTexture]]|}} | |||
{{LSL DefineRow||[[llSetTextureAnim]]|}} | |||
|events | |events | ||
|cat1=Face | |cat1=Face | ||
|cat2 | |cat2=Texture | ||
|cat3 | |cat3=Alpha | ||
|cat4 | |cat4=Color | ||
}} | }} |
Latest revision as of 15:38, 28 October 2023
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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
Related Articles
Functions
Examples
default
{
state_entry()
{
string texture = llGetInventoryName(INVENTORY_TEXTURE, 0);
llSetTexture(texture, ALL_SIDES);
}
}