|
Virtuater Voom
Registered User
Join date: 11 Apr 2007
Posts: 8
|
05-12-2007 00:00
Is it possible to play a sound from an object by clicking on it? And off course i would prefer sound that I uploaded myself. Any help on this perhaps? Many thanks in advance.
|
|
Hg Beeks
llGetElement(80);
Join date: 13 Apr 2006
Posts: 134
|
05-12-2007 00:07
llPlaySound() is the command you're looking for, and the touch event is in the default script.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
05-12-2007 00:34
string sound = "";
default { touch_start(integer t) { llPlaySound(sound, 1.00); } }
if you want to use the name of the sound place it between the "" and have it in the objects inventory or if you want to use the uuid place that between the "" no need to have it in the object
|
|
Virtuater Voom
Registered User
Join date: 11 Apr 2007
Posts: 8
|
:d
05-12-2007 08:49
Thanks again for the quick a good help!
|