close

LSL : Linden scripting language

state 變換。初始state : default. 指令 state 可轉換 state

 

 

default
{
    state_entry()
    {
        state light_on;
    }
}

state light_on
{
    state_entry()
    {
        llSay(0, "The light is on");
    }

    touch_end(integer count)
    {
        state light_off;
    }
}


state light_off
{
    state_entry()
    {
        llSay(0, "The light is off");
    }

    touch_end(integer count)
    {
        state light_on;
    }
}

 

arrow
arrow
    文章標籤
    second life LSL
    全站熱搜

    neojou 發表在 痞客邦 留言(0) 人氣()