Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Doorbell Script

Calli Oh
Registered User
Join date: 7 Feb 2007
Posts: 4
04-02-2007 06:13
Hi :) I'm looking for a doorbell script to put in doormats. I'd like the one one that rings then says something to the effect of "Welcome to My Home" or whatever. This may be 2 seperate scripts, I don't know. If anyone can help me with this, I'd be very greatful! Leave me a message her or in world. Thanks so much!
Teddy Qinan
Registered User
Join date: 10 Mar 2007
Posts: 34
Door bell script
04-03-2007 18:05
A door bell script in a door mat would have to rely on a scanner, which I don't like to use as they chew CPU time. If you want one that people touch to activate I can make you one quite cheaply. If you provide the sound file with full perms I'll do it for free. Msg me in game if your interested.
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
04-04-2007 06:59
Or it could use the VolumeDetectFunction with an invisible, larger prim.
Daten Thielt
Registered User
Join date: 1 Dec 2006
Posts: 104
04-04-2007 07:16
why not just use a collision

String sound = "doorbell.wav"

default
{
collision_start(integer num)
{
llPlaySound(sound,1.0);
llSleep(10);
}
}

If you had a big house you could do

String sound = "doorbell.wav"

default
{
collision_start(integer num)
{
llPlaySound(sound,1.0);
llSleep(10);
llShout(50, "imhere";);
}
}

and have a Relay
String sound = "doorbell.wav"

default
{
state_entry()
{
llListen(50, "","","imhere";);
}
listen(integer chan, string name, key id, string msg)
{
if(msg == "imhere";)
{
llPlaySound(sound, 1.0);
}
}
}

Opensorce for the world