Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sharing an event.

Zante Zapedzki
We need html on a prim!
Join date: 15 Feb 2007
Posts: 123
04-07-2007 12:12
I have 2 prims used to make up a double sliding door but they operate independently from one another.

How can I make it so that the same touch event will operate both of them at the same time?

When I link them via ctrl + L, they act as one and both only move in one direction (depending on which side was touched first).

How can I limit the interaction between 2 prims so that they only share the same touch event. Keeping in mind that prims are not able to listen to themselves and that I'd like to avoid using channels.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
04-07-2007 12:57
Basically you can only do this if they're linked, given the desire (quite sensible) to avoid listens.

You will need slightly different scripts in each door, with the direction of movement reversed, and llPassTouch(TRUE) in each one.

Other altenatives would be to have the touch_start trigger a link message to LINK_SET and have them both move in response to the link message rather than the touch directly.
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog