Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

multiple prims, multiple scripts, one click.

Dominguez Brentano
Registered User
Join date: 20 Apr 2006
Posts: 87
03-12-2007 09:33
basic question I'm struggling with:

I have two objects which each move from one arbitrary position to another when you click them. (like a door)

I've linked them together, but clicking them results in both prims moving according to the script on the particular object I click.

is there any way to script these two objects so that on clicking either of them, they both independently execute their respective scripts? so that they move independently of each other while still linked? (to facilitate the single clicking)


(extending this to >2 prims & you'd end up with some sort of transformer type thing, if you know hat I mean!)
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
03-12-2007 12:02
I would have one prim in the linkset have the "touch" event (preferably the root prim), and then use llMessageLinked to signal the other prims to move.
Dominguez Brentano
Registered User
Join date: 20 Apr 2006
Posts: 87
03-12-2007 13:06
From: Keknehv Psaltery
I would have one prim in the linkset have the "touch" event (preferably the root prim), and then use llMessageLinked to signal the other prims to move.



thanks for the reply :)

*goes off into the depths of the lsl wiki*