llStopAnimation/ru

From Second Life Wiki
< LlStopAnimation
Revision as of 20:42, 10 June 2013 by Fashion Atlas (talk | contribs) (Created page with "{{LSL_Function |inject-2={{Issues/SVC-3860}}{{LSL_Function/permission|PERMISSION_TRIGGER_ANIMATION}}{{LSL_Function/inventory|anim|uuid=true|type=animation}} |func_id=130|func_sle…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary

Function: llStopAnimation( string anim );

Агенту предоставляется остановка анимации anim без отмены разрешения PERMISSION_TRIGGER_ANIMATION.

• string anim an animation in the inventory of the prim this script is in or a UUID of an animation or built in animation name

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 and it is not a UUID or it is not an animation then an error is shouted on DEBUG_CHANNEL.
  • If anim is a UUID then there are no new asset permissions consequences for the object.
    • The resulting object develops no new usage restrictions that might have occurred if the asset had been placed in the prims inventory.Если останавливаемая анимация является единственной воспроизведимой анимацией (находим с помощью llGetAnimationList), она продолжит воспроизведиться до своего конца (если она зациклена - будет продолжаться бесконечно)
    • Если необходимо остановить зацикленную анимацию, воспроизводя единственный кадр не зацикленно сразу после его остановки, с низким приоритетом - список очистится.

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   llStopAnimation("prejump") freezes avatar

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("анимация будет завершена через 5 секунд");
           llSetTimerEvent(5.0);
       }
   }
   timer()
   {
       llSetTimerEvent(0.0);
       llStopAnimation("sit");
   }

}

</lsl>

Notes

<lsl> 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
•  llGetAnimationList Получить список воспроизведения анимаций
•  llStartAnimation Запуск воспроизведения анимации

Articles

•  Script permissions

Deep Notes

All Issues

~ Search JIRA for related Issues
   llStopAnimation("prejump") freezes avatar

Signature

function void llStopAnimation( string anim );