Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Detect me - or not

Lisbeth Cohen
Registered User
Join date: 4 Jul 2004
Posts: 53
01-06-2006 08:08
Please delete this message.
Wicc Cunningham
Registered User
Join date: 25 Jun 2004
Posts: 52
01-06-2006 09:43
Are you wanting it to just say whatever your "notification" is? You can have it said, whispered, or shouted. Of course you could have it IMed to you as well. Plus not seeing the end point of the script.
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
01-06-2006 10:15
CODE

integer present;

default
{
state_entry()
{
present = FALSE;
llSensorRepeat("", llGetOwner(), AGENT, 20, PI, 10.0);
}

sensor(integer num)
{
if (present == FALSE)
{
present = TRUE;
llSay(0, "Present");
}
}

no_sensor()
{
if (present == TRUE)
{
present = FALSE;
llSay(0, "Not present");
}
}
}


From: someone
I assume I'm detected as not present when I'm offline.


Or you step outside the 20m range.
Wicc Cunningham
Registered User
Join date: 25 Jun 2004
Posts: 52
01-06-2006 10:26
And Ziggy beat me to posting a script. Yes indeed that will do it.
Lisbeth Cohen
Registered User
Join date: 4 Jul 2004
Posts: 53
01-06-2006 10:39
Wow! That was fast Ziggy :)

Thank you very much both Wicc and Ziggy. I will just use the script to activate or deactivate my skybox security device. No point having it active if I'm not there ;)


Lis
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
01-06-2006 10:54
That might work for you. Depends on how your security system works. If it's set to only respond to the owner (which would make sense, a security system isn't very secure if anyone else can turn it on and off), then having an object say the same command won't activate it. Either way, it doesn't hurt to try it and see what happens. Keep the llSay(0, ...) in there so you know it's activating correctly, and add a new llSay with the correct channel and command to activate your security system, and see what happens.
Lisbeth Cohen
Registered User
Join date: 4 Jul 2004
Posts: 53
01-06-2006 11:21
I IM'ed the security device creator, who should look into it.

Of course the activate/deactivate command has to be said on a specific channel and by an object the security device allow. I trust the creator of the device will look at what security holes such a change would create. The best thing would be if detection of me could be put into the security device itself as an option, thereby not annoying people flying through the area - or neighbors - when I'm not in the skybox.

I'll just see what she comes up with :)

Thanks again Ziggy!


Lis
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
01-06-2006 15:54
Lis, be aware that that running security scripts while you are not present is discouraged and frowned upon. Some scripts could even get you Abuse Reported if left active when you leave.
Lisbeth Cohen
Registered User
Join date: 4 Jul 2004
Posts: 53
01-06-2006 22:32
From: Ben Bacon
Lis, be aware that that running security scripts while you are not present is discouraged and frowned upon. Some scripts could even get you Abuse Reported if left active when you leave.

I know, Ben. That's why I want something to turn it off when I leave, cause my memory is so crappy I forget to turn it on and off manually all the time. But I have put my platform pretty high to avoid disturbing people, also have no neighbors on the parcels next to my land. I'm trying to think about not disturbing other people's SL experience, while still at least trying to protect my privacy somewhat. Well, considered privacy in SL is just an illusion - lol

I wish I didn't have to use such a security device at all, but a club nearby create lots of traffic. Some visitors get curious about the club's neighborhood, and a fraction of them fly up to me. None of them knows how to say 'knock knock' or stop staring for huge amounts of time, something that's irritating me. But they do know how to use a jet pack! Strange... :p

Anyway, thanks for your worries and well meant advice! :) I'll see if I can solve it differently, like have an eject ball that only ejects a person when I tell it to do so.


Lis
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
01-06-2006 23:02
If you want to avoid using sensors, make a 19.5 meter disk like described in this thread /8/ff/77037/1.html. Rez it like 1 meter over the floor and then put this script inside it. It should detect you as present when you are standing inside inside it.

CODE

integer present;
default {
state_entry() {
integer present = FALSE;
llVolumeDetect(TRUE);
llSetAlpha(0, ALL_SIDES);
}

collision_start(integer num_detected) {
if(llDetectedKey(0) == llGetOwner()) {
if(present == FALSE) {
present = TRUE;
llSay(0, "Present");
}
}
}

collision_end(integer num_detected) {
if(present == TRUE) {
present = FALSE;
llSay(0, "Not present");
}
}
}
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
01-07-2006 03:16
From: Lisbeth Cohen
I know, Ben. That's why I want something to turn it off when I leave
Aha! I understand now :) Sorry, I thought you wanted to turn it ON when you left.

Auto turn off is a great idea. It would be grand if security scripts actually came with this feature built in.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
01-10-2006 12:21
From: Lisbeth Cohen
Thank you very much both Wicc and Ziggy. I will just use the script to activate or deactivate my skybox security device. No point having it active if I'm not there ;)

Since your security script has to run a sensor anyway, just have it look for you in the same sensor loop it looks for people to deny access. There's no point having multiple loops to do the same thing.

If your security script is scanning continuously, whether you're there or not, that's lag-inducing. If you can use volume detect instead that's better.