OsAvatarPlayAnimation

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Fritigern (Talk) to last version by ZauberExonar)
Line 1: Line 1:
<table width="100%" style="border: thin solid black; vertical-align:top">
+
'''osAvatarPlayAnimation'''(key avatar, string animation)
<tr>
+
 
<td colspan="2" align="center" style="background:orange"> <b><span class="fck_mw_template">{{SUBPAGENAME}}</span></b>
+
This function causes an animation to be played on the specified avatar. The variable ''animation'' can be either the name of an animation within the task inventory, or it can be the UUID of an animation. Because osAvatarPlayAnimation does not perform any security checks or request animation permissions from the targeted avatar, it has a threat level of High.
</td></tr>
+
 
<tr>
+
<code><pre>//Example Usage:
<td><b>Threat Level</b> </td><td> High
+
default {
</td></tr>
+
    touch_start(integer num) {
<tr>
+
        string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
<td><b>Function Syntax</b> </td><td> <span class="fck_mw_source" _fck_mw_customtag="true" _fck_mw_tagname="source" lang="lsl">fckLRosAvatarPlayAnimation(key avatar, string animation) fckLR</span>
+
        osAvatarPlayAnimation(llDetectedKey(0), anim);
</td></tr>
+
    }
<tr>
+
}</pre></code>
<td><b>Example(s)</td><td><span class="fck_mw_source" _fck_mw_customtag="true" _fck_mw_tagname="source" lang="lsl">fckLR//Example Usage: default { fckLRfckLR    touch_start(integer num) {fckLR      string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);fckLR      osAvatarPlayAnimation(llDetectedKey(0), anim);fckLR  }fckLRfckLR} fckLR</span></b>
+
 
</td></tr></table>
+
--[[User:ZauberExonar|ZauberExonar]] 07:55, 5 February 2010 (UTC)
<p>This function causes an animation to be played on the specified avatar.  
+
</p><p>The variable <i>animation</i> can be either the name of an animation within the task inventory, or it can be the UUID of an animation.  
+
</p><p><b>osAvatarPlayAnimation</b> does not perform any security checks or request animation permissions from the targeted avatar,
+
</p><a _fcknotitle="true" href="Category:OSSL_Functions">OSSL_Functions</a> <a _fcknotitle="true" href="Category:OSSL">OSSL</a>
+

Revision as of 11:34, 8 June 2011

osAvatarPlayAnimation(key avatar, string animation)

This function causes an animation to be played on the specified avatar. The variable animation can be either the name of an animation within the task inventory, or it can be the UUID of an animation. Because osAvatarPlayAnimation does not perform any security checks or request animation permissions from the targeted avatar, it has a threat level of High.

//Example Usage:
default {
    touch_start(integer num) {
        string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
        osAvatarPlayAnimation(llDetectedKey(0), anim);
    }
}

--ZauberExonar 07:55, 5 February 2010 (UTC)

Personal tools
General
About This Wiki