载入中。。。 'S bLog
 
载入中。。。
 
载入中。。。
载入中。。。
载入中。。。
载入中。。。
载入中。。。
 
填写您的邮件地址,订阅我们的精彩内容:


 
关于state的启动与停止.
[ 2007/7/23 15:39:00 | By: 梦翔儿 ]
 
关于state的启动与停止.
default
{
        touch_start(integer num_detected)  //when touched
    {
        state start;                        //go to state start
    }
}
    state start
    {
        state_entry()                            //state start has
        {                                       //state start has
            llSay(0,"You're in state entry");   //the firest real action
        }
       
        touch_start(integer num_detected)       //when touched again
        {
            state default;                      //stop script,but when   
        }
       
        state_exit()                           //script is over
        {
            llSay(0,"You stopped script");      //say this   
        }
    }

这是标准的单击激活动作,很常用,再单击停止动作了.当然也可以把他扩展为点击变色,再点还原;点击变透明,再点还原;
 
 
  • 标签:state second life lsl 
  • 发表评论:
    载入中。。。

     
     
     

    梦翔儿网站 梦飞翔的地方 http://www.dreamflier.net
    中华人民共和国信息产业部TCP/IP系统 备案序号:辽ICP备09000550号

    Powered by Oblog.