Kylee Python
Registered User
Join date: 24 Aug 2009
Posts: 2
|
11-30-2009 14:59
How would make a short audio clip come out of an object when touched? Thanks, i am new to SL.
|
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
|
11-30-2009 15:05
|
Kylee Python
Registered User
Join date: 24 Aug 2009
Posts: 2
|
11-30-2009 15:09
does that just make it look constantly or only when touched? Also what file format does the audio have to be and are there any size restrictions?
|
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
|
11-30-2009 15:32
To make it fire on the touch event, change to code in the example to this: default { touch_start (integer total_number) { llPlaySound("some_sound",1.0); } } You need to upload the sound clip to your inventory and then to the scripted prim's contents, alongside the script itself, or you may copy the asset UUID from the sound clip in your inventory and use that in the script without having to copy the clip itself. If memory serves, the clip must be a 44.1kHz WAV file, no longer than 10 seconds.
|