Fred Beckhusen

This commit is contained in:
Fred Beckhusen
2019-03-17 23:41:07 -05:00
parent 45eefedef1
commit 5a21e18d9e
561 changed files with 920 additions and 877 deletions

View File

@@ -0,0 +1,43 @@
// :CATEGORY:Lights
// :NAME:Blinking light
// :AUTHOR:Fred Beckhusen
// :REV:1.0
// :WORLD:Second Life, Opensim
// :DESCRIPTION:
// A rapidly blinking light made from a prim
// :CODE:
integer primnum = 0 ; // change to the number of a prim that you want to flash
integer counter = 0;
Off() {
llSetLinkPrimitiveParamsFast(0,[PRIM_POINT_LIGHT, TRUE, <1,1,1>, 1.0, 10, .1, PRIM_FULLBRIGHT, ALL_SIDES,1, PRIM_GLOW, ALL_SIDES, 1.0]);
}
On() {
llSetLinkPrimitiveParamsFast(0,[PRIM_POINT_LIGHT, FALSE, <1,1,1>, 1.0, 10, .1, PRIM_FULLBRIGHT, ALL_SIDES,0, PRIM_GLOW, ALL_SIDES, 0.0]);
}
default
{
state_entry()
{
Off();
}
touch_start(integer total_number)
{
llSetTimerEvent(.1); // 1/10 a second between events
}
timer()
{
if (counter == 0)
On();
else if (counter == 1)
Off();
else if (counter == 2)
On();
else if (counter == 2) {
Off();
llSetTimerEvent(0);
}
counter++;
}
}