Difference between revisions of "PRIM SIZE"

From Second Life Wiki
Jump to navigation Jump to search
Line 23: Line 23:
|toc=llGetPrimitiveParams
|toc=llGetPrimitiveParams
}}
}}
|examples
|examples=
<lsl>  
 
Use thePRIM_SIZE and ad an (,) after that the size you want. 
<lsl>
 
//MathieuBC Noel scripter
//MathieuBC Noel scripter
default
touch_start(integer total_number)
{
{
 
      
      
    touch_start(integer total_number)
{
       
         llSetPos( llGetScale( )+ llGetPos() + <0,0,-1>);
         llSetPos( llGetScale( )+ llGetPos() + <0,0,-1>);
          
          
Line 42: Line 40:


     }
     }
}
} </lsl>  
 
</lsl>
llGetPrimitiveParams([ PRIM_SIZE, <1.148,0.081,0.313> ]);


|constants=
|constants=

Revision as of 11:34, 6 December 2008

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 10.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 10.0 for x, y and z

Related Articles

Examples

Use thePRIM_SIZE and ad an (,) after that the size you want. <lsl>

//MathieuBC Noel scripter touch_start(integer total_number) {

       llSetPos( llGetScale( )+ llGetPos() + <0,0,-1>);
       
       llGetPrimitiveParams([ PRIM_SIZE, <1.148,0.081,0.313> ]); 
       }
      
       
   }

} </lsl>

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_SIZE = 7;