Difference between revisions of "LlStartAnimation"

From Second Life Wiki
Jump to navigation Jump to search
m (fixe)
(mention limit on number of animations)
Line 7: Line 7:
|return_text
|return_text
|spec
|spec
|caveats
|caveats=* Prior to 1.25.3 of the server code, an essentially unlimited number of animations could be played at once.  In 1.25.3, a limit of 15 simultaneous animations was imposed; in 1.25.4, that limit was (will be) raised to 30.
|constants
|constants
|examples=
|examples=

Revision as of 11:47, 16 January 2009

Summary

Function: llStartAnimation( string anim );

Start animation anim for agent that granted PERMISSION_TRIGGER_ANIMATION if the permission has not been revoked.

• string anim an item in the inventory of the prim this script is in

To run this function the script must request the PERMISSION_TRIGGER_ANIMATION permission with llRequestPermissions.

Caveats

Permissions
  • If anim is missing from the prim's inventory then an error is shouted on DEBUG_CHANNEL.
  • Prior to 1.25.3 of the server code, an essentially unlimited number of animations could be played at once. In 1.25.3, a limit of 15 simultaneous animations was imposed; in 1.25.4, that limit was (will be) raised to 30.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl> default {

   touch_start(integer detected)
   {
       llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);
   }
   run_time_permissions(integer perm)
   {
       if (perm & PERMISSION_TRIGGER_ANIMATION)
       {
           llStartAnimation("sit");
           llOwnerSay("animation will end in 5 seconds");
           llSetTimerEvent(5.0);
       }
   }
   timer()
   {
       llSetTimerEvent(0.0);
       llStopAnimation("sit");
   }

}

</lsl>

See Also

Events

•  run_time_permissions Permission receiving event

Functions

•  llGetPermissions Get the permissions granted
•  llGetPermissionsKey Get the agent who granted permissions
•  llRequestPermissions Request permissions
•  llStopAnimation

Articles

•  Script permissions
•  Internal_Animations lists internal Animations always available

Deep Notes

Search JIRA for related Issues

Signature

function void llStartAnimation( string anim );