OsAvatarPlayAnimation

From OpenSimulator

Revision as of 02:27, 2 July 2011 by MakoBot (Talk | contribs)

Jump to: navigation, search
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
Extra 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