Jump to content

Lunacy Bloodrose

Resident
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Lunacy Bloodrose

  1. So I'm trying to put a script together that will start and stop an animation for an avatar on touch. Similar to how the dancers that doesn't use poseballs work for example.

    So far I've got this to work, but it's still giving me an error message every time it's clicked and I can't figure out how to fix it and everything I've tried breaks the part that does work (and i don't know much about scripting in the first place). Anyone out there know what the problem might be/ how to fix it?

    Quote

    default
    {
        touch_start(integer detected)
        {
            llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);
        }
        run_time_permissions(integer perm)
        {
            if (perm & PERMISSION_TRIGGER_ANIMATION)
            {
                llStartAnimation("animation");
                llSetTimerEvent(0);
            }
        }
        touch_end(integer detected)
        {
            llStopAnimation("animation");
        }
    }

    And the error message I keep getting.

    Quote

    Script trying to stop animations but PERMISSION_TRIGGER_ANIMATION permission not set

     

×
×
  • Create New...