default { state_entry(){ state off; } } state on{ state_entry(){ // llSay(0, "Light On."); // llSetPrimitiveParams ([PRIM_FULLBRIGHT, 0, 1]); llSetPrimitiveParams ([PRIM_POINT_LIGHT, TRUE, <1.0,1.0,1.0>, 1, 20, 2, PRIM_FULLBRIGHT, 0, 1]); } touch_start(integer total_number){ state off; } } state off{ state_entry(){ // llSay(0, "Light Off."); llSetPrimitiveParams ([PRIM_POINT_LIGHT, FALSE, <0,0,1>, 1, 20, 0.75, PRIM_FULLBRIGHT, 0, 0]); // llSetPrimitiveParams ([PRIM_FULLBRIGHT, 0, 0]); } touch_start(integer total_number){ state on; } }