LSL Wiki Mirror 10-5-2006: llStopAnimation

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
llStopAnimation(string anim)

Stops the animation anim. In order for this to work, the script must have the PERMISSION_TRIGGER_ANIMATION
permission on an avatar. See llRequestPermissions and llGetPermissions for more information on permissions.

It is usually good practice to check llGetPermissions before calling this function. Otherwise this message might appear:
"Script trying to stop animations but PERMISSION_TRIGGER_ANIMATION permission not set".

Note: while the official docs and editor help tool tip claim: "This function stops animation anim for the avatar that owns the object.", that is incorrect; as long as permissions have been granted, any avatar's animations can be stopped using llStopAnimation.

See animation for a current list of animation names.

ExampleAnimationScript shows an example of this function's use (it is the freely-distributed animation script many people use).

To start an animation, use llStartAnimation.

Q: Can llStopAnimation accept a key to an animation to stop an animation? (See llGetAnimationList.)
A: Yes, even though llStartAnimation does not accept keys.


Functions | Agent/Avatar | Animation
There is no comment on this page. [Display comments/form]