|
FlipFlappy Gjellerup
Registered User
Join date: 4 Nov 2005
Posts: 11
|
10-04-2006 17:24
hey everyone, as simple as this sounds, i have been trying to find some sort of tutorial or premade script for this action, but have been unsuccessful to this point. i am looking to just simply trigger a sound from one's inventory when a certain prim is touched. this prim will be attached to the HUD view. I am also still uncertain at thi point whether it would need to be a llplaysound function or a lltriggersound function. any thoughts, or ideas, or help in general?? a script for this would be great!!
thanks!
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
10-04-2006 20:31
default { touch_start(integer total_number) { string sound = llGetInventoryName(INVENTORY_SOUND,0); llPlaySound(sound,1.0); } }
or default { touch_start(integer total_number) { llPlaySound(llGetInventoryName(INVENTORY_SOUND,0),1.0); } }
|
|
Taeas Stirling
Registered User
Join date: 4 Sep 2004
Posts: 74
|
10-04-2006 20:39
I just used a similer script in a hud device, use TriggerSound, as the PlaySound call only plays for the wearer in a hud set up. As stated in the wiki, and proved by my application.
|
|
Dnel DaSilva
Master Xessorizer
Join date: 22 May 2005
Posts: 781
|
10-05-2006 01:40
From: FlipFlappy Gjellerup ...trigger a sound from one's inventory.. Just to clarify, the sound has to be in the object. you can't trigger sounds from your inventory. HMMM?? Can you trigger a sound by UUID?
_____________________
Xessories in Urbane, home of high quality jewelry and accessories.
Coming soon to www.xessories.net
Why accessorize when you can Xessorize?
|
|
Lexi Foley
Registered User
Join date: 1 Mar 2006
Posts: 43
|
10-05-2006 04:10
From: Dnel DaSilva Just to clarify, the sound has to be in the object. you can't trigger sounds from your inventory.
HMMM?? Can you trigger a sound by UUID? yes, go to inven, to the sound,, click right choose copy asset uuid and and use that key into the script! Greetings Lexi Foley
|