Johnny Prototype
Junior Member
Join date: 10 Aug 2004
Posts: 9
|
08-14-2004 05:34
Hi folks,
Can anyone advise me on the best way to script a sound effect to play when an object is worn, then another sound to play on removal from avatar ?
I've tried just using the llPlaysound in the State_Entry to get the 1st sound but this only seems to play the sound on compiling.
Any ideas ?
Thank you.
|
Goshua Lament
Registered User
Join date: 25 Dec 2003
Posts: 703
|
08-14-2004 09:50
Try this: default { attach(key attached) //Attach event { llPlaySound("Sound", 1.0) }
state_exit //When the state exits? I don't know if this part works. { llPlaySound("Sound", 1.0) }
} I don't know of any detach event. You could write a command that plays a sound and detaches the object on command. llDetachFromAvatar would be of help. I'm not 100% sure about the state exit, but the attach event handles the first part.
_____________________
Flickr Second Life Photo GalleryI no longer regularly login to SecondLife, but please contact me if an issue arises that needs my attention.
|
Johnny Prototype
Junior Member
Join date: 10 Aug 2004
Posts: 9
|
08-14-2004 13:21
Thanks Goshua, The first part works fine  , just need to work out the detach part now. Thx again for your help
|