OsAvatarPlayAnimation
From OpenSimulator
(Difference between revisions)
m |
m |
||
Line 2: | Line 2: | ||
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}''' | | colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}''' | ||
|- valign="top" | |- valign="top" | ||
− | |'''Threat Level''' || | + | |'''Threat Level''' || VeryHigh |
|- valign="top" | |- valign="top" | ||
|'''Function Syntax''' || <source lang="lsl"> | |'''Function Syntax''' || <source lang="lsl"> |
Revision as of 12:41, 11 June 2011
OsAvatarPlayAnimation | |
Threat Level | VeryHigh |
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,