Difference between revisions of "LlGetAnimationList"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Gally Young (talk | contribs) m (fixe) |
|||
Line 8: | Line 8: | ||
|caveats=*There is no internal mechanism to get the name of the animations playing. | |caveats=*There is no internal mechanism to get the name of the animations playing. | ||
|constants | |constants | ||
|examples | |examples= | ||
<lsl>// Zand's Keybord Script | |||
// by Zand Gundersen | |||
// THIS SCRIPT IS PUBLIC DOMAIN! Do not delete the credits at the top of this script! | |||
// Feel free to copy, modify, and use this script. | |||
list anims; | |||
key ANIM_TYPE="c541c47f-e0c0-058b-ad1a-d6ae3a4584d9"; | |||
default | |||
{ | |||
state_entry() | |||
{ | |||
llSetTimerEvent(.2); | |||
} | |||
timer() | |||
{ | |||
anims = llGetAnimationList(llGetOwner()); | |||
if(~llListFindList(anims,[ANIM_TYPE])) | |||
{ | |||
llSetLinkAlpha(LINK_SET,1.0,ALL_SIDES); | |||
} | |||
else | |||
{ | |||
llSetLinkAlpha(LINK_SET,0.0,ALL_SIDES); | |||
} | |||
} | |||
}</lsl> | |||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llGetAgentInfo]]|Gets the avatar info}} | |also_functions={{LSL DefineRow||[[llGetAgentInfo]]|Gets the avatar info}} |
Revision as of 18:23, 7 April 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: list llGetAnimationList( key id );266 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a list of all playing animations for avatar id by key.
• key | id | – | avatar UUID that is in the same region |
Caveats
- There is no internal mechanism to get the name of the animations playing.
Examples
<lsl>// Zand's Keybord Script // by Zand Gundersen // THIS SCRIPT IS PUBLIC DOMAIN! Do not delete the credits at the top of this script! // Feel free to copy, modify, and use this script.
list anims; key ANIM_TYPE="c541c47f-e0c0-058b-ad1a-d6ae3a4584d9";
default {
state_entry() { llSetTimerEvent(.2); } timer() { anims = llGetAnimationList(llGetOwner()); if(~llListFindList(anims,[ANIM_TYPE])) { llSetLinkAlpha(LINK_SET,1.0,ALL_SIDES); } else { llSetLinkAlpha(LINK_SET,0.0,ALL_SIDES); } }}</lsl>
See Also
Functions
• | llGetAgentInfo | – | Gets the avatar info | |
• | llGetAnimation | – | Get an over simplified avatar info string | |
• | llStartAnimation | – | Start an animation on an avatar | |
• | llStopAnimation | – | Stop an animation playing on an avatar |