Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Hourly Chime

Rock Skizm
Registered User
Join date: 24 Jun 2009
Posts: 8
08-22-2009 22:34
I am working on a clock - found some great clock scripts on xstreet. One thing missing is an hourly chime. Any guidance on how to add a sound effect to the clock. Basically, every hour on the hour I would like the script to play a sound one time (or perhaps make it so you can set how many times it plays). If anyone has some info that would be cool. Many thanks in advance,

Rock
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
08-22-2009 22:49
Here's a simple script:

From: someone

default
{
state_entry()
{
llSetTimerEvent(3600) // One hour in seconds.
}

timer()
{
llTriggerSound("Chime", 1.0);
}
}
_____________________
Life is a highway... And I just missed my exit.
Rock Skizm
Registered User
Join date: 24 Jun 2009
Posts: 8
bless you
08-22-2009 22:59
Thanks so much
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
08-22-2009 23:08
No problem.

Note, however, that the timer starts when the script is reset... So if you first turn on the script at 1:34, the Chime will trigger at 2:34, 3:34, etc.
_____________________
Life is a highway... And I just missed my exit.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
08-23-2009 05:59
Or if you want to play the chime at 0100, 0200 and so on, no matter when the clock starts, take a look at Ceera Murakami's example at /54/3a/234842/1.html