LlMapDestination
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials | 
| 函数名 | 
|---|
| Function: llMapDestination( string simname, vector pos, vector look_at ); | 
| 参数: • string simname – Region name • vector pos – position in region coordinates • vector look_at – position in local coordinates (not used) | 
| 返回值: 打开以简单名称为中心的世界地图,使用高亮显示,只适用于附加到阿凡达上的脚本,或者在触摸事件中。 | 
| 注意事项 | 
|---|
| 注意事项 
 | 
| 示例 | 
|---|
| 示例一 string simName = "Help Island Public";
vector tpDest = <128.0, 128.0, 24.0>;
vector lookAt = ZERO_VECTOR;
 
default
{
    state_entry()
    {
        // set white, opaque floattext with teleport destination
        llSetText("click to teleport\nto '" + simName + "'", <1.0, 1.0, 1.0>, (float)TRUE);
    }
 
    touch_start(integer num_detected)
    {
        key id = llDetectedKey(0);
 
        string oldSlurlPrefix = "http://slurl.com/secondlife/";
        string newSlurlPrefix = "http://maps.secondlife.com/secondlife/";
        string slurlSuffix = llEscapeURL(simName)
            + "/" + (string)llRound(tpDest.x)
            + "/" + (string)llRound(tpDest.y)
            + "/" + (string)llRound(tpDest.z);
 
        llInstantMessage(id, oldSlurlPrefix + slurlSuffix);
        llInstantMessage(id, newSlurlPrefix + slurlSuffix);
 
        llMapDestination(simName, tpDest, lookAt);
    }
}
 | 
| 相关函数 | 
|---|
| llRequestInventoryData | 
| 相关事件 | 
|---|
