Hello there, I am in need of turning this script in to a listening script instead of a touch, plus make it so it only lights up two sides. Help would be much appreciated :) default
{
state_entry()
{
}
touch_start(integer total_number)
{
llOwnerSay("active");
llSetPrimitiveParams([
PRIM_FULLBRIGHT, ALL_SIDES, TRUE,
PRIM_GLOW, ALL_SIDES, 0.05,
PRIM_POINT_LIGHT, TRUE, <1, 1, 1>, 1.0, 5.0, 0.75
]);
state open;
}
}
state open
{
touch_start(integer tnum)
{
llOwnerSay("inactive");
llSetPrimitiveParams([
PRIM_FULLBRIGHT, ALL_SIDES, FALSE,
PRIM_GLOW, ALL_SIDES, 0.01,
PRIM_POINT_LIGHT, FALSE, <0, 0, 0>, 0.0, 5.0, 0.75
]);
state default;
}
} thank you for reading :)