Difference between revisions of "LlGetScale"
Jump to navigation
Jump to search
m (<lsl> tag to <source>) |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LSL_Function | ||
|func_id=48|func_sleep=0.0|func_energy=10.0 | |||
|func=llGetScale | |||
|return_type=vector | |||
|func_footnote | |||
|func_desc | |||
|return_text=that is the scale of the prim. | |||
|spec | |||
|caveats | |||
|constants | |||
|examples=<source lang="lsl2">default | |||
{ | |||
touch_start(integer total_number) | |||
{ | |||
llSay(0, "My dimensions are: " + (string)llGetScale()); | |||
} | |||
}</source> | |||
|helpers | |||
|also_functions= | |||
{{LSL DefineRow||[[llSetScale]]|Sets the prims size}} | |||
{{LSL DefineRow||[[llSetPrimitiveParams]]|Sets prims attributes}} | |||
{{LSL DefineRow||[[llGetPrimitiveParams]]|Gets prims attributes}} | |||
|also_tests | |||
|also_events | |||
|also_articles | |||
|notes | |||
|cat1=Prim | |||
|cat2 | |||
|cat3 | |||
|cat4 | |||
}} |
Latest revision as of 02:50, 22 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llGetScale( );48 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a vector that is the scale of the prim.
Caveats
Examples
default
{
touch_start(integer total_number)
{
llSay(0, "My dimensions are: " + (string)llGetScale());
}
}
See Also
Functions
• | llSetScale | – | Sets the prims size | |
• | llSetPrimitiveParams | – | Sets prims attributes | |
• | llGetPrimitiveParams | – | Gets prims attributes |