[Opensim-users] llSetPrimitiveParams doesnt work anymore

Fred Folkerts fred.folkerts at live.nl
Thu Mar 27 11:48:47 UTC 2014


Hello,


I want to make use of a script for opening a door using llSetPrimitiveParams.
After a whyle the script does not react anymore on touching.
This happen for example with the following script:

vector cut = < 0, 0.25 , 0 >;
float step = .015;

default {
    touch_start(integer total_number) {
         do {
             cut.x += step;
            llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_CYLINDER, PRIM_HOLE_DEFAULT, //hole_shape
                          cut,    // cut
                          0.95,    // hollow
                          < 0.0, 0.0, 0.0 >,    // twist
                          < 1.0, 1.0, 0.0 >,    // top_size
                          < 0.0, 0.0, 0.0 >]);
        }
        while (cut.x > 0 && cut.x <  .75);
        step *= -1;
    }
}
When using a new prim with the same script, it works again!
Using the do-while loop in a function it most times doesnt work at all.
Fred / OSGRID
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20140327/617e49ee/attachment.html>


More information about the Opensim-users mailing list