“LlMapDestination”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: llMapDestination( string simname, vector pos, vector look_…”) |
(没有差异)
|
2020年8月23日 (日) 03:01的最新版本
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | 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 |
| 相关事件 |
|---|