Template:Needs Translation/ 
| 函数名 | 
| Function: float llGetRegionTimeDilation( ); | 
| 参数: | 
| 返回值:返回当前时间扩展的浮点数,值范围为[0.0,1.0],0.0(完全扩展)和1.0(没有扩展) 它用作脚本时间变化与现实世界时间变化的比率。.
 | 
| 示例 | 
| 示例1 // 一个区域信息脚本的开头。
string region;
string sim;
 
default
{
    state_entry()
    {
        llSetTimerEvent(1.0);
    }
    timer()
    {
        string here = llGetRegionName();
        if(region != here)
        {
            sim = llGetSimulatorHostname();
            region = here;
        }
        llSetText(
                "   REGION NAME : " + region + 
              "\n  SIM HOSTNAME : " + sim + 
              "\n TIME DILATION : " + (string)llGetRegionTimeDilation() +
              "\n    REGION FPS : " + (string)llGetRegionFPS(),
            <0,1,0>, 1.0);
    }
}
 |