Difference between revisions of "User:Jana Kamachi/tut wprimz"

From Second Life Wiki
Jump to navigation Jump to search
(New page: First thing first, make a torus, and set its size to: x=0.5,y=1.0,z=1.0. Now, make a new script, and stick this in it: <pre> default { state_entry() { llSetPrimitiveParams...)
 
m (added your <lsl> syntax tags, made the prim rescale and the script self-delete. Thanks for releasing this discovery. You pwn :))
 
Line 1: Line 1:
First thing first, make a torus, and set its size to: x=0.5,y=1.0,z=1.0.
First thing first, rez a prim.


Now, make a new script, and stick this in it:
Now, make a new script, and stick this in it:
<pre>
 
default
<lsl>default
{
{
     state_entry()
     state_entry()
     {
     {
         llSetPrimitiveParams([PRIM_TYPE,4, 0, <0.000000, 1.000000, 0.000000>, 0.000000, <0.000000, 0.000000, 0.000000>, <1.000000, 0.150000, 0.000000>, <0.000000, 0.000000, 0.000000>, <0.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, 4.000000, 0.000000, 0.800000]);
         llSetPrimitiveParams([PRIM_TYPE,4, 0, <0.000000, 1.000000, 0.000000>, 0.000000, <0.000000, 0.000000, 0.000000>, <1.000000, 0.150000, 0.000000>, <0.000000, 0.000000, 0.000000>, <0.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, 4.000000, 0.000000, 0.800000, PRIM_SIZE, <.5,1.,1.>]);
        llRemoveInventory(llGetScriptName());
     }
     }
}
}</lsl>
</pre>


Save and run the script. You can delete it after your prim visibly changes. You now have your shape. Try positioning it on yourself, around your waist, and see the effects. If it doesn't seem to be working, you may just be off a bit.
Save and run the script. You now have your shape. Try positioning it on yourself, around your waist, and see the effects. If it doesn't seem to be working, you may just be off a bit.

Latest revision as of 12:39, 9 January 2008

First thing first, rez a prim.

Now, make a new script, and stick this in it:

<lsl>default {

   state_entry()
   {
       llSetPrimitiveParams([PRIM_TYPE,4, 0, <0.000000, 1.000000, 0.000000>, 0.000000, <0.000000, 0.000000, 0.000000>, <1.000000, 0.150000, 0.000000>, <0.000000, 0.000000, 0.000000>, <0.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>, 4.000000, 0.000000, 0.800000, PRIM_SIZE, <.5,1.,1.>]);
       llRemoveInventory(llGetScriptName());
   }

}</lsl>

Save and run the script. You now have your shape. Try positioning it on yourself, around your waist, and see the effects. If it doesn't seem to be working, you may just be off a bit.