-
Posts
7 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Posts posted by Lunacy Bloodrose
-
-
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?
Quotedefault
{
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.
QuoteScript trying to stop animations but PERMISSION_TRIGGER_ANIMATION permission not set
Touch start/end Animation Error Message?
in LSL Scripting
Posted
OMG Thank you so much! It's working now!
And thank you for the explanation on what was happening <3