Hello, I made a HUD to play an animation on touch, and turn off on touch again. For me it works fine, but when I sent it to my alt to test it's working well, it gives this error "Script trying to stop animations but PERMISSION_TRIGGER_ANIMATION permission not set". The HUD still works and animates but I want to get rid of this error since I'm selling it and that would look bad.
the script:
integer playing;
default
{
state_entry()
{
playing = FALSE;
}
touch_start(integer start_param)
{
if(playing == FALSE)
{
llRequestPermissions(llDetectedKey(0),PERMISSION_TRIGGER_ANIMATION);
}
else if(playing == TRUE)
{
llStopAnimation(llGetInventoryName(INVENTORY_ANIMATION,0));
playing = FALSE;
}
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
playing = TRUE;
llStartAnimation(llGetInventoryName(INVENTORY_ANIMATION,0));
}
}
}