Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
|
12-26-2007 13:56
I have a sound that I want to loop in a prim. Anyone have the script for this?
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
12-26-2007 13:58
default { state_entry() { llLoopSound("<whatever your sound is called>", 1.0); } }
and then put the sound in the same item. That's it.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!
http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal
http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
|
Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
|
12-26-2007 14:05
Thanks 
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
12-26-2007 15:26
And if you don't want to worry about putting sound's name in the script you can use one that will get the first sound in object's contents: default { state_entry() { llLoopSound(llGetInventoryName(INVENTORY_SOUND), 1.0); } }
|
Lex Insippo
Registered User
Join date: 4 Dec 2007
Posts: 49
|
01-13-2008 21:57
i'm having trouble with this.
default { state_entry() { llLoopSound("my sound", 1.0); } }
i included the wave file name in the script "my sound" and also dropped the wav file in the contents folder of the object. but, there is nothing playing. any help is appreciated. thanks
|
Okiphia Anatine
Okiphia Rayna
Join date: 22 Nov 2007
Posts: 454
|
01-13-2008 22:52
From: Lex Insippo i'm having trouble with this.
default { state_entry() { llLoopSound("my sound", 1.0); } }
i included the wave file name in the script "my sound" and also dropped the wav file in the contents folder of the object. but, there is nothing playing. any help is appreciated. thanks selectr the object, then go to tools > reset scripts in selection. This should work I believe.
_____________________
In-world, I am Okiphia Rayna. This account is an alt, and is the only account I currently have with payment info on-file due to some account cracking that took place. This is a security measure at present, and I may return to the forums as Okiphia Rayna at a later date.
If you need to reach me, IM Okiphia Rayna, not Okiphia Anatine
|