OsAvatarPlayAnimation

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (some syntax modification (may be major or minor))
m (Default state was accidentally commented out)
Line 3: Line 3:
 
|function_syntax=void osAvatarPlayAnimation(key avatar, string animation)  
 
|function_syntax=void osAvatarPlayAnimation(key avatar, string animation)  
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
//Example Usage: default {  
+
//Example Usage:  
 
+
default {  
 
     touch_start(integer num) {
 
     touch_start(integer num) {
 
       string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
 
       string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);

Revision as of 22:50, 17 March 2012

void 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.

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

Threat Level VeryHigh
Permissions No permissions specified
Delay No function delay specified
Example(s)
//Example Usage: 
default { 
    touch_start(integer num) {
      string anim = llGetInventoryName(INVENTORY_ANIMATION, 0);
      osAvatarPlayAnimation(llDetectedKey(0), anim);
  }
 
}
Personal tools
General
About This Wiki