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;
}
}
文章標籤
全站熱搜