<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
	<id>http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlMapDestination</id>
	<title>LlMapDestination - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlMapDestination"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlMapDestination&amp;action=history"/>
	<updated>2026-06-01T04:38:23Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlMapDestination&amp;diff=783&amp;oldid=prev</id>
		<title>Ty：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: llMapDestination( string simname, vector pos, vector look_…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlMapDestination&amp;diff=783&amp;oldid=prev"/>
		<updated>2020-08-23T03:01:24Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: llMapDestination( string simname, vector pos, vector look_…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{函数详情&lt;br /&gt;
|函数名 = Function: llMapDestination( string simname, vector pos, vector look_at );&lt;br /&gt;
|参数= 参数：&lt;br /&gt;
• string	simname	–	Region name	&lt;br /&gt;
&lt;br /&gt;
• vector	pos	–	position in region coordinates	&lt;br /&gt;
&lt;br /&gt;
• vector	look_at	–	position in local coordinates (not used)&lt;br /&gt;
|返回值= 返回值：&lt;br /&gt;
打开以简单名称为中心的世界地图，使用高亮显示，只适用于附加到阿凡达上的脚本，或者在触摸事件中。&lt;br /&gt;
|注意事项=&lt;br /&gt;
注意事项&lt;br /&gt;
*这个函数使脚本休眠1.0秒。&lt;br /&gt;
*如果省略了 simname 或者无效，映射将以对象为中心打开，但是不会突出显示 pos。因为这个函数请求客户端执行一个任务，所以脚本无法知道它是否失败。&lt;br /&gt;
|示例=&lt;br /&gt;
示例一&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
string simName = &amp;quot;Help Island Public&amp;quot;;&lt;br /&gt;
vector tpDest = &amp;lt;128.0, 128.0, 24.0&amp;gt;;&lt;br /&gt;
vector lookAt = ZERO_VECTOR;&lt;br /&gt;
 &lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        // set white, opaque floattext with teleport destination&lt;br /&gt;
        llSetText(&amp;quot;click to teleport\nto '&amp;quot; + simName + &amp;quot;'&amp;quot;, &amp;lt;1.0, 1.0, 1.0&amp;gt;, (float)TRUE);&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    touch_start(integer num_detected)&lt;br /&gt;
    {&lt;br /&gt;
        key id = llDetectedKey(0);&lt;br /&gt;
 &lt;br /&gt;
        string oldSlurlPrefix = &amp;quot;http://slurl.com/secondlife/&amp;quot;;&lt;br /&gt;
        string newSlurlPrefix = &amp;quot;http://maps.secondlife.com/secondlife/&amp;quot;;&lt;br /&gt;
        string slurlSuffix = llEscapeURL(simName)&lt;br /&gt;
            + &amp;quot;/&amp;quot; + (string)llRound(tpDest.x)&lt;br /&gt;
            + &amp;quot;/&amp;quot; + (string)llRound(tpDest.y)&lt;br /&gt;
            + &amp;quot;/&amp;quot; + (string)llRound(tpDest.z);&lt;br /&gt;
 &lt;br /&gt;
        llInstantMessage(id, oldSlurlPrefix + slurlSuffix);&lt;br /&gt;
        llInstantMessage(id, newSlurlPrefix + slurlSuffix);&lt;br /&gt;
 &lt;br /&gt;
        llMapDestination(simName, tpDest, lookAt);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|相关函数=&lt;br /&gt;
[[llRequestInventoryData]]&lt;br /&gt;
&lt;br /&gt;
|相关事件=&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Ty</name></author>
		
	</entry>
</feed>