<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type></HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"
dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I want to make use of a script for opening a door using
llSetPrimitiveParams.</DIV>
<DIV>After a whyle the script does not react anymore on touching.</DIV>
<DIV>This happen for example with the following script:</DIV>
<DIV> </DIV>
<DIV>vector cut = < 0, 0.25 , 0 >;</DIV>
<DIV>float step = .015;</DIV>
<DIV> </DIV>
<DIV>default {</DIV>
<DIV> touch_start(integer total_number) {</DIV>
<DIV> do {</DIV>
<DIV>
cut.x += step;</DIV>
<DIV>
llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_CYLINDER, PRIM_HOLE_DEFAULT,
//hole_shape</DIV>
<DIV>
cut, // cut</DIV>
<DIV>
0.95, // hollow</DIV>
<DIV>
< 0.0, 0.0, 0.0 >, // twist</DIV>
<DIV>
< 1.0, 1.0, 0.0 >, // top_size</DIV>
<DIV>
< 0.0, 0.0, 0.0 >]);</DIV>
<DIV> }</DIV>
<DIV> while (cut.x > 0 &&
cut.x < .75);</DIV>
<DIV> step *= -1;</DIV>
<DIV> }</DIV>
<DIV>}</DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">When
using a <STRONG>new</STRONG> prim with the same script, it works
again!</DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Using
the do-while loop in a function it most times doesnt work at all.</DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Fred
/ OSGRID</DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV></DIV></DIV></BODY></HTML>