Files
LSL-Scripts/Dance Hud/Dance Hud/Object/Stop Button Script.lsl
Fred Beckhusen 0317121fc6 new stuff
2019-04-03 20:47:22 -05:00

28 lines
535 B
Plaintext

integer active = FALSE;
default
{
state_entry()
{
llSetColor(<1,0,0>, ALL_SIDES);
}
touch_start(integer num)
{
if (active) {
llMessageLinked(LINK_ROOT, 0, "doff", NULL_KEY);
active = FALSE;
llSetColor(<1,0,0>, ALL_SIDES);
} else {
llMessageLinked(LINK_ROOT, 0, "don", NULL_KEY);
active = TRUE;
llSetColor(<0,1,0>, ALL_SIDES);
}
}
on_rez(integer sparam)
{
llResetScript();
}
}