Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

In need of a Avatar Sensor

Klaus Fassbinder
The Thinker
Join date: 2 Feb 2005
Posts: 4
04-22-2005 17:33
I am looking for an Avatar Sensor script that will broadcast a message whenever an Avatar is within range of it. This would be needed to have when have a gathering and do not want to miss anyone who shows up.

Thank you very much for any and all help.

Klaus Fassbinder
Fassbinder Castle Estates
Zina LeMay
Registered User
Join date: 23 Jan 2005
Posts: 237
04-22-2005 17:42
I have some glasses you can wear that do this. IM in world and I will give you a copy.


:)
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
04-22-2005 17:58
CODE
touch_start(integer total_number)
{
llSensor("","",AGENT,20,TWO_PI); // 20m sensor
}
sensor(integer total_number)
{
integer i;
for(i = 0; i < total_number; i++)
{
llWhisper(0,llDetectedName(i));
}
}

Note that this only returns a maximum of 16 names.

Oh, any relation to Klaus from the German Forklift Video? :D
_____________________
---
Travis Lambert
White dog, red collar
Join date: 3 Jun 2004
Posts: 2,819
04-23-2005 00:56
I've been thinking of something similar - but haven't yet been able to get my arms around it....

A "Newbie Sensor" - something that would detect the AV's within range, and display everyone's name with a birthdate within 30 days in hovertext.

Although sure, you can pull up profiles - but I get a *lot* of newbies thru my place - It'd be nice if I had something folks could look at, and know immediately who to give extra attention to :)
Siro Mfume
XD
Join date: 5 Aug 2004
Posts: 747
04-23-2005 01:47
Use llOwnerSay instead of llWhisper for debug/sensor output :/

http://secondlife.com/badgeo/wakka.php?wakka=llOwnerSay