Difference between revisions of "PRIM SIZE"
Jump to navigation
Jump to search
m |
m (<lsl> tag to <source>) |
||
(One intermediate revision by one other user not shown) | |||
Line 15: | Line 15: | ||
|value=7 | |value=7 | ||
|desc=Returns or sets the prim's {{LSLP|size}}. | |desc=Returns or sets the prim's {{LSLP|size}}. | ||
|caveats= | |||
*Does not work on [[STATUS_PHYSICS|physical]] prims. | |||
|pa={{LSL Constant/List|i_front=[ {{#var:size_const}}, |i_end= ] | |pa={{LSL Constant/List|i_front=[ {{#var:size_const}}, |i_end= ] | ||
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | |text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | ||
Line 27: | Line 29: | ||
}} | }} | ||
|examples= | |examples= | ||
< | <source lang="lsl2">//Changing the prim size and rotation | ||
default | default | ||
{ | { | ||
Line 37: | Line 39: | ||
]); | ]); | ||
} | } | ||
} </ | } </source> | ||
|constants= | |constants= | ||
|functions= | |functions= |
Latest revision as of 15:56, 23 January 2015
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
- Does not work on physical prims.
Related Articles
Functions
• | llGetPrimitiveParams | |||
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetScale | |||
• | llSetScale |
Examples
//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>
]);
}
}