Hello,
I am struggling with a script for days now and hope to find some help here. I am working on a HUD for my FX and Light Screen, almost everything works but I can´t figure out what I am missing in the blinking script. The prim where this receiver script is in only blink once when BlinkON is activated in stead of over and over again. Any help is much appreciated 😊
Thanks, Mistral Shieldmaiden
------
vector color = <1,1,1>;
float intensity = 1.000;
float radius = 10.000;
float falloff = 0.750;
default
{
state_entry()
{
llSetTimerEvent(2);
}
timer()
{
llListen(737, "", NULL_KEY, "" );
}
listen(integer number, string name, key id, string message)
{
if(message=="BlinkON")
{ llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_POINT_LIGHT, TRUE, color, intensity, radius, falloff, PRIM_FULLBRIGHT, ALL_SIDES, TRUE, PRIM_GLOW, ALL_SIDES,0.2]);
llSleep(0.5);
llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_POINT_LIGHT, FALSE, color, intensity, radius, falloff, PRIM_FULLBRIGHT, ALL_SIDES, FALSE, PRIM_GLOW, ALL_SIDES,0]);
}
if(message=="BlinkOFF")
{ llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_POINT_LIGHT, FALSE, color, intensity, radius, falloff, PRIM_FULLBRIGHT, ALL_SIDES, FALSE, PRIM_GLOW, ALL_SIDES,0]);
}
}
}