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