Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Linked prim movement

DoctorWho62 Oh
Registered User
Join date: 4 Jun 2007
Posts: 12
04-28-2009 15:15
Hi
I have a script to make a linked set go up & down when i touch a switch using the formula below

listen(integer channel, string name, key id, string msg)
{if (msg =="953";) pos= llGetPos();
{ for (i=1;i<6;i++)

If i remove the ++ from the equation it gives me the effect i want of the prims moving all the time but i need it to stop when i touch the switch again. I have tried the ResetScript();
in several places with in script to no effect. could any one help either here or in world

Thanks Doc
Nexii Malthus
[Cubitar]Mothership
Join date: 24 Apr 2006
Posts: 400
04-28-2009 16:00
Try moving the prims using a timer event, the problem is that the LSL script can only be doing one thing at a time, so when its in the continous loop it can't take a break to try process other things going around, such as queue'd events.

What you would need to do is instead use a timer event for your loop to leave a bit of processing time for other things that may come up.
_____________________

Geometric Library, for all your 3D maths needs.
https://wiki.secondlife.com/wiki/Geometric

Creator of the Vertical Life Client