Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Moving prims in a linked set

Leyah Renegade
Live Musician
Join date: 2 Nov 2006
Posts: 125
12-19-2007 22:48
Doubtless this has come up before but I couldn't find anything readily...

I have a door that is part of a linked set, and the door consists of more than one prim. When the door prim is touched, I want both of the door prims to open or close. I'm doing this with link messages to set the open and closed position and rotation of each prim, and that works fine.

But my problem is that I'd like to be able to touch *either* of the two (or more) prims to open or shut the door. As long as it's only limited to one prim that can send the link messages, it's fine. But of course, if either prim can be touched and they each can send a link message to the other, they just start looping between each other endlessly and the door keeps opening and closing and opening and closing... :D

How does one get around this?
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-19-2007 23:07
sounds like a logic error...
you could have a script in each, that when touched sends out a message, and when it recieves a message (like the one it would send out) it THEN triggers the open/close. have it send the message to itself and the other prim.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Leyah Renegade
Live Musician
Join date: 2 Nov 2006
Posts: 125
12-20-2007 05:55
Yeah, I knew there was a logic error but was having trouble seeing it... too much late night coding. :D Thanks for the post, I do believe that will work!