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


 
GetAgentSize 判断人物高度
[ 2007/7/15 15:12:00 | By: 梦翔儿 ]
 
default
{
    touch_start(integer total_number)
    {
        vector size; //variable to hold size info
       
        size = llGetAgentSize(llDetectedKey(0)); //attach function to variable
       
        if(size.z >= 1.523) // if avatar is Greater than or equal to 1.5m
        {
            llSay(0,"You are over 5 feet");    //tell them they are tall enough
        }
                llSay(
                     0,    // channel to is public
            "You are "+    //message
        (string)size.z+    //use the variable size to find z
        "meters tall.");
                     
       
    }
}

==================

default
{
    touch_start(integer total_number)
    {
        vector size; //variable to hold size info
       
        size = llGetAgentSize(llDetectedKey(0)); //attach function to variable
       
        llSay(
                     0,    // channel to is public
            "You are "+    //message
        (string)size.z+    //use the variable size to find z
        "meters tall.");
       
        if(size.z >= 2.0) // if avatar is Greater than or equal to 2.0m
        {
            llSay(0,"You are more than 2 meters");    //tell them they are tall enough
        }
        else if(size.z<2.0)
        {
          llSay(0,"You are less than 2 meters");  //say to them,they are less than 2 m.   
        }

 
 
  • 标签:GetAgentSize second life 
  • 发表评论:
    载入中。。。

     
     
     

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

    Powered by Oblog.