<?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=LlGetAnimation</id>
	<title>LlGetAnimation - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlGetAnimation"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlGetAnimation&amp;action=history"/>
	<updated>2026-06-01T03:38:57Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlGetAnimation&amp;diff=1095&amp;oldid=prev</id>
		<title>2021年8月29日 (日) 02:39 Kjf</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlGetAnimation&amp;diff=1095&amp;oldid=prev"/>
		<updated>2021-08-29T02:39:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2021年8月29日 (日) 02:39的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;第4行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第4行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{函数详情&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{函数详情&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|函数名 = Function: string llGetAnimation( key id )&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|函数名 = Function: string llGetAnimation( key id )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|参数= 参数：key &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;id–avatar UUID that is in the same region&amp;#160; key id -头像在同一区域的UUID&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|参数= 参数：key &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;id–化身在同一区域的UUID&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|返回值= 返回值：返回一个字符串，它是当前正在播放的化身id的运动动画的名称。见下表。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|返回值= 返回值：返回一个字符串，它是当前正在播放的化身id的运动动画的名称。见下表。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kjf</name></author>
		
	</entry>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlGetAnimation&amp;diff=843&amp;oldid=prev</id>
		<title>Qmf：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: string llGetAnimation( key id ) |参数= 参数：key id…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlGetAnimation&amp;diff=843&amp;oldid=prev"/>
		<updated>2021-01-20T08:27:01Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: string llGetAnimation( key id ) |参数= 参数：key id…”&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: string llGetAnimation( key id )&lt;br /&gt;
|参数= 参数：key id–avatar UUID that is in the same region  key id -头像在同一区域的UUID&lt;br /&gt;
|返回值= 返回值：返回一个字符串，它是当前正在播放的化身id的运动动画的名称。见下表。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|注意事项=&lt;br /&gt;
注意事项&lt;br /&gt;
*这个函数可以在角色退出时返回一个空字符串。&lt;br /&gt;
*新的返回值可能会在任何时候被添加，而这个列表实际上可能并不完整。编写脚本时，应该假定它们可能接收到它们不认识的值。&lt;br /&gt;
|示例=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/ A simple animation override example.&lt;br /&gt;
// Make the avatar run in mid-air when jumping.&lt;br /&gt;
 &lt;br /&gt;
key gOwner; // the wearer's key&lt;br /&gt;
string gLastAnimation; // last llGetAnimation value seen&lt;br /&gt;
 &lt;br /&gt;
// User functions&lt;br /&gt;
 &lt;br /&gt;
Initialize(key id) {&lt;br /&gt;
    if (id == NULL_KEY) { // detaching&lt;br /&gt;
        llSetTimerEvent(0.0); // stop the timer&lt;br /&gt;
    }&lt;br /&gt;
    else { // attached, or reset while worn&lt;br /&gt;
        llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION);&lt;br /&gt;
        gOwner = id;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
// Event handlers&lt;br /&gt;
 &lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry() {&lt;br /&gt;
        // in case the script was reset while already attached&lt;br /&gt;
        if (llGetAttached() != 0) {&lt;br /&gt;
            Initialize(llGetOwner());&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    attach(key id) {&lt;br /&gt;
        Initialize(id);&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    run_time_permissions(integer perm) {&lt;br /&gt;
        if (perm &amp;amp; PERMISSION_TRIGGER_ANIMATION) {&lt;br /&gt;
            llSetTimerEvent(0.25); // start polling&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    timer() {&lt;br /&gt;
        string newAnimation = llGetAnimation(gOwner);&lt;br /&gt;
 &lt;br /&gt;
        if (gLastAnimation != newAnimation) { // any change?&lt;br /&gt;
            if (newAnimation == &amp;quot;Jumping&amp;quot;) {&lt;br /&gt;
 &lt;br /&gt;
                // You can stop the built-in animation if you like, if&lt;br /&gt;
                // it might interfere with your own. Be aware that an&lt;br /&gt;
                // avatar can become stuck, and some llGetAgentInfo results&lt;br /&gt;
                // can be inaccurate, if you stop built-ins indiscriminately.&lt;br /&gt;
                // Always test.&lt;br /&gt;
                //&lt;br /&gt;
                // llStopAnimation(&amp;quot;jump&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
                llStartAnimation(&amp;quot;run&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
            else if (gLastAnimation == &amp;quot;Jumping&amp;quot;)  { // just finished jumping&lt;br /&gt;
                // &amp;quot;run&amp;quot; is looped, so we have to stop it when we are done.&lt;br /&gt;
                llStopAnimation(&amp;quot;run&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
 &lt;br /&gt;
            gLastAnimation = newAnimation; // store away for  next time&lt;br /&gt;
        }&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;
[[llGetAgentInfo]]		&lt;br /&gt;
[[llGetAnimationList]]			&lt;br /&gt;
&lt;br /&gt;
|相关事件=&lt;br /&gt;
无	&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Qmf</name></author>
		
	</entry>
</feed>