Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

question about how to make your own hud with own sounds

Lex Insippo
Registered User
Join date: 4 Dec 2007
Posts: 49
12-07-2007 19:48
i tried to do a few searches before i decided to finally post this up. i would like to make my own HUD with my own sounds. is it possible someone could help me out as to what i need to do this. if there is already a thread like this please link me. i apologize if there is already. thanks in advance.
AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
12-08-2007 00:46
The straight forward approach is to make a bunch of square or round buttons with text in the applied texture that indicates which sound they make. Each button has a touch-start function with llPlaySound or llTriggerSound to correspond. You will need to store a copy of the sound in the contents of each button. Link them all together into a panel and put it in inventory. Then wear it to the hud position you want.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
12-08-2007 17:53
When a sound is played from a HUD, if the intent is for others to hear the sound, llTriggerSound is necessary; llPlaySound is only heard by the wearer when called from a HUD.