Jump to content

Link Multiple Objects with Different Scripts


Moriantha
 Share

You are about to reply to a thread that has been inactive for 2725 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

The issue i am having is that i want to link a 3d sound that is based upon 3 movable orbs (to create the 3d effect, of course) to a light source that has no sound. I have tried to link them all together in numerous ways and either only one of the orbs makes sound with no light, or there's light but no sound. they all have a script to turn on/off on click. any help would be greatly appreciated as i'm very new at this. thanks in advance.

Link to comment
Share on other sites

You can't use a script in the root to play a sound in a child prim directly because there's no llPlayLinkSound function in LSL.  The way to do it is to put a script with a link_message event in it into each child prim, listening for a trigger from the script in your root prim.  Those scripts will pay the sound.  Use the script in the root prim to switch the light and to send the message to the child prims with llMessageLinked(LINK_ALL_OTHERS,0,trigger_message,NULL_KEY).

ETA:  It should be obvious, but you only want to have a touch_start event in the master script that's in the root prim.  Since it's in the root, it will respond to a touch on any prim.

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2725 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...