OsAvatarPlayAnimation
From OpenSimulator
(Difference between revisions)
ZauberExonar (Talk | contribs) (New page: 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 animat...) |
ZauberExonar (Talk | contribs) |
||
Line 2: | Line 2: | ||
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. | 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. | ||
+ | |||
+ | //Example Usage: | ||
+ | default { | ||
+ | touch_start(integer num) { | ||
+ | string anim = llGetInventoryName(INVENTORY_ANIMATION, 0); | ||
+ | osAvatarPlayAnimation(llDetectedKey(0), anim); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | --[[User:ZauberExonar|ZauberExonar]] 07:55, 5 February 2010 (UTC) |
Revision as of 23:55, 4 February 2010
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. Because osAvatarPlayAnimation does not perform any security checks or request animation permissions from the targeted avatar, it has a threat level of High.
//Example Usage: default {
touch_start(integer num) { string anim = llGetInventoryName(INVENTORY_ANIMATION, 0); osAvatarPlayAnimation(llDetectedKey(0), anim); }
}
--ZauberExonar 07:55, 5 February 2010 (UTC)