March 22nd, 2010
integer switch = TRUE;
integer count = 0;
default
{
state_entry()
{
llTriggerSound("091402dc-f0ea-81d4-6ca0-728649a1c0c5",0.0);
}
on_rez(integer start_param)
{
llResetScript();
}
touch_start(integer total_number)
{
if (switch == FALSE)
{
switch = TRUE;
llSetPrimitiveParams ([
PRIM_POINT_LIGHT, TRUE, <1, 0.5, 0>, 1.0, 10.0, 0.00 ,
PRIM_GLOW, ALL_SIDES, 1.0]);
llTriggerSound("091402dc-f0ea-81d4-6ca0-728649a1c0c5",1.0);
}
else if (switch == TRUE)
{
switch = FALSE;
llSetPrimitiveParams ([
PRIM_POINT_LIGHT, FALSE, <1, 1, 1>, 1.0, 10.0, 0.75 ,
PRIM_GLOW, ALL_SIDES, 0.0]);
llTriggerSound("091402dc-f0ea-81d4-6ca0-728649a1c0c5",1.0);
}
}
}
Tags: light, prim, switch, touch
Posted in LSL Scripts