OsAvatarPlayAnimation

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
{|  width="100%" style="border: thin solid black"
+
<table width="100%" style="border: thin solid black; vertical-align:top">
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
<tr>
|-
+
<td colspan="2" align="center" style="background:orange"> <b><span class="fck_mw_template">{{SUBPAGENAME}}</span></b>
|'''Threat Level''' || High
+
</td></tr>
|-
+
<tr>
|'''Function Syntax''' || <source lang="lsl">
+
<td><b>Threat Level</b> </td><td> High
osAvatarPlayAnimation(key avatar, string animation)  
+
</td></tr>
</source>
+
<tr>
|-
+
<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>
|'''Example(s)||<source lang="lsl">
+
</td></tr>
//Example Usage: default {  
+
<tr>
 
+
<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>
    touch_start(integer num) {
+
</td></tr></table>
      string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
+
<p>This function causes an animation to be played on the specified avatar.  
      osAvatarPlayAnimation(llDetectedKey(0), anim);
+
</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>
}  
+
</source>
+
|}
+
 
+
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.  
+
 
+
'''osAvatarPlayAnimation''' does not perform any security checks or request animation permissions from the targeted avatar,  
+
 
+
[[Category:OSSL Functions]]
+
[[Category:OSSL]]
+

Revision as of 11:28, 8 June 2011

OsAvatarPlayAnimation
Threat Level High
Function Syntax fckLRosAvatarPlayAnimation(key avatar, string animation) fckLR
Example(s)</td>fckLR//Example Usage: default { fckLRfckLR touch_start(integer num) {fckLR string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);fckLR osAvatarPlayAnimation(llDetectedKey(0), anim);fckLR }fckLRfckLR} fckLR

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.

osAvatarPlayAnimation does not perform any security checks or request animation permissions from the targeted avatar,

<a _fcknotitle="true" href="Category:OSSL_Functions">OSSL_Functions</a> <a _fcknotitle="true" href="Category:OSSL">OSSL</a>
Personal tools
General
About This Wiki