OsAvatarPlayAnimation

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc|
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
threat_level = VeryHigh
|- valign="top"
+
|
|'''Threat Level''' || VeryHigh
+
function_syntax = <source lang="lsl">
|- valign="top"
+
|'''Function Syntax''' || <source lang="lsl">
+
 
osAvatarPlayAnimation(key avatar, string animation)  
 
osAvatarPlayAnimation(key avatar, string animation)  
 
</source>
 
</source>
|- valign="top"
+
|
|'''Example(s)||<source lang="lsl">
+
ossl_example = <source lang="lsl">
 
//Example Usage: default {  
 
//Example Usage: default {  
  
Line 18: Line 16:
 
}  
 
}  
 
</source>
 
</source>
|}
+
|  
 
+
additional_info = This function causes an animation to be played on the specified avatar.  
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.  
  
 
'''osAvatarPlayAnimation''' does not perform any security checks or request animation permissions from the targeted avatar,  
 
'''osAvatarPlayAnimation''' does not perform any security checks or request animation permissions from the targeted avatar,  
 
+
|
[[Category:OSSL Functions]]
+
}}

Revision as of 13:46, 12 June 2011

osAvatarPlayAnimation(key avatar, string animation)
No descriptions provided
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);
  }
 
}
Notes
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,

Personal tools
General
About This Wiki