Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need reset prim script....

SeXXXy Bliss
SL Addict
Join date: 21 Dec 2004
Posts: 436
12-07-2008 07:51
Hello,
I made a 'Snowman Bowling' set and would like to have the pins reset themselves back to their starting position. Can anyone help me or lead me in the right direction....
Thank you!
Ralph Doctorow
Registered User
Join date: 16 Oct 2005
Posts: 560
12-07-2008 10:05
It depends on how you do the knocking down of the pins. If it's done via a link message for non-physics objects for example, just have all the pins remember their starting positions and rotations and send a message telling them to go back to the start position.

If you're using physical pins, first have them shut off physics, then move and rotate to the start positions, then turn physics back on. You'll need a script in each pin that does something like listen on a channel other than 0 for commands. One command to define the start position, another to reset themselves. You can use a similar technique for returning the ball.