All pastes #907641 Raw Edit

what is wrong with this

public text v1 · immutable
·published 2008-02-17 20:08 UTC
rendered paste body

vector on = <1.0,1.0,1.0>;
vector off = <0.0,0.0,0.0>;



default
{
    state_entry()
    {
        llWhisper(0, "Light Activated");
        
        llListen(0,"gate1","","Winner");
        llListen(0,"","","off");
    }

    listen(integer channel, string name, key id, string m)
    {
        if (m == "Winner")
        {
            llSetColor(on,ALL_SIDES);
        }
        if (m == "off")
        {
            llSetColor(off,ALL_SIDES);
        }
    }
}