Difference between revisions of "PRIM SIZE"
Jump to navigation
Jump to search
m (The example contained superfluous, badly formatted code; nor was it credit worth. The caveat(sp) didn't make sense.) |
Batche Manen (talk | contribs) m (Update for 64m prim scale allowance) |
||
Line 3: | Line 3: | ||
{{#vardefine:size_const|{{LSL Const|PRIM_SIZE|integer|7|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's size}}}} | {{#vardefine:size_const|{{LSL Const|PRIM_SIZE|integer|7|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's size}}}} | ||
{{#vardefine:p_size_desc|ranges from 0.01 to | {{#vardefine:p_size_desc|ranges from 0.01 to 64.0 for x, y and z}} | ||
}}</onlyinclude>{{#if: | }}</onlyinclude>{{#if: |
Revision as of 23:02, 2 January 2012
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_SIZE = 7;The integer constant PRIM_SIZE has the value 7
Returns or sets the prim's size.
llSetPrimitiveParams
[ PRIM_SIZE, vector size ]• vector | size | – | ranges from 0.01 to 64.0 for x, y and z |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_SIZE ]);Returns the list [ vector size ]
• vector | size | – | ranges from 0.01 to 64.0 for x, y and z |
Caveats
Related Articles
Functions
• | llGetPrimitiveParams | |||
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetScale | |||
• | llSetScale |
Examples
<lsl>//Changing the prim size and rotation default {
touch_start(integer total_number) { llSetPrimitiveParams([ PRIM_SIZE, <0.25,0.5,1.0>, PRIM_ROTATION, <1.0, 0.0, 0.0, 0.0> ]); }
} </lsl>