OsAvatarPlayAnimation
From OpenSimulator
(Difference between revisions)
Line 1: | Line 1: | ||
− | + | <table width="100%" style="border: thin solid black; vertical-align:top"> | |
− | + | <tr> | |
− | + | <td colspan="2" align="center" style="background:orange"> <b><span class="fck_mw_template">{{SUBPAGENAME}}</span></b> | |
− | + | </td></tr> | |
− | + | <tr> | |
− | + | <td><b>Threat Level</b> </td><td> High | |
− | + | </td></tr> | |
− | </ | + | <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> | |
− | + | </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> | |
− | + | </td></tr></table> | |
− | + | <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> | |
− | } | + | |
− | </ | + | |
− | + | ||
− | + | ||
− | This function causes an animation to be played on the specified avatar. | + | |
− | + | ||
− | The variable | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 10: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>