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:
'''osAvatarPlayAnimation'''(key avatar, string animation)
+
{|  width="100%" style="border: thin solid black"
 +
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 +
|-
 +
|'''Threat Level''' || High
 +
|-
 +
|'''Function Syntax''' || <source lang="lsl">
 +
osAvatarPlayAnimation(key avatar, string animation)  
 +
</source>
 +
|-
 +
|'''Example(s)||<source lang="lsl">
 +
//Example Usage: default {
  
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.
 
 
<code><pre>//Example Usage:
 
default {
 
 
     touch_start(integer num) {
 
     touch_start(integer num) {
        string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
+
      string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
        osAvatarPlayAnimation(llDetectedKey(0), anim);
+
      osAvatarPlayAnimation(llDetectedKey(0), anim);
    }
+
  }
}</pre></code>
+
 
 +
}  
 +
</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,
  
--[[User:ZauberExonar|ZauberExonar]] 07:55, 5 February 2010 (UTC)
+
[[Category:OSSL Functions]]
 +
[[Category:OSSL]]

Revision as of 10:42, 8 June 2011

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

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,

Personal tools
General
About This Wiki