Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sensor states are not saved when a sim restarts?

bUTTONpUSHER Jones
professional puddlejumper
Join date: 10 Oct 2002
Posts: 172
12-05-2002 23:18
some of my sensors work perfectly, but when i come back a day or two later they have stopped detecting and need to be reset. puzzling...
after observing my sim go down and come back up yesterday, [insert lightbulb picture here], i checked my sensor experiments and they had stopped detecting.
can a Linden confirm this? my neighbors prolly wouldn't appreciate me taking down the sim to test it.

here's some code.
CODE

// spectre
integer playState = FALSE;
integer agentDetected = FALSE;
float range = 4.0; // in meters
float rate = 0.5; // in seconds

start_sound()
{
//
// Start the sound playing
//
// llSetTexture("spectre02", 2);
// llPlaySound("ghost_wail.wav", 0.5);
llWhisper(0, "i detect you");
integer i;
for (i = 0; i<4; i++)
{
llSetAlpha((float)i/3, ALL_SIDES);
llSleep(0.1);
}
playState = TRUE;
llSleep(3.5);
for (i = 6; i>-1; i--)
{
llSleep(0.1);
llSetAlpha((float)i/6, ALL_SIDES);
}
// llSetTexture("_clear", 2);
llSleep(6.0);
}

default
{
state_entry()
{
llSensorRepeat( "", "", AGENT, range, 0.6, rate );
llSetStatus(STATUS_PHANTOM, TRUE);
// llPreloadSound("ghost_wail.wav");
}

sensor(integer number)
{
agentDetected = TRUE;
start_sound();
}

no_sensor()
{
// stayin alive
}
}


bp
Celerity Epoch
Genius in absentia
Join date: 13 Nov 2002
Posts: 179
Yeah, I've noticed that as well.
12-06-2002 06:18
my halo has sensors on it, and they pretty much need to be reset every day at login, and after some of my "the whole world went away" adventures as well.
Andrew Linden
Linden staff
Join date: 18 Nov 2002
Posts: 692
12-11-2002 16:51
I'm happy to report that this bug has already been fixed in the next release (next week!).
bUTTONpUSHER Jones
professional puddlejumper
Join date: 10 Oct 2002
Posts: 172
12-11-2002 23:59
w0000000t!
you guys rock!
thank you thank you thank you

bp