OsAvatarPlayAnimation
From OpenSimulator
(Difference between revisions)
m (some format conversions) |
|||
Line 1: | Line 1: | ||
− | {{osslfunc | + | {{osslfunc |
− | threat_level = VeryHigh | + | |threat_level=VeryHigh |
− | | | + | |function_syntax=osAvatarPlayAnimation(key avatar, string animation) |
− | function_syntax = | + | |ossl_example=<source lang="lsl"> |
− | osAvatarPlayAnimation(key avatar, string animation) | + | |
− | + | ||
− | | | + | |
− | ossl_example = <source lang="lsl"> | + | |
//Example Usage: default { | //Example Usage: default { | ||
Line 16: | Line 12: | ||
} | } | ||
</source> | </source> | ||
− | | | + | |description=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. | The variable ''animation'' can be either the name of an animation within the task inventory, or it can be the UUID of an animation. |
Revision as of 20:30, 1 July 2011
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); } } |