Jump to content

Playing Animations via UUIDs


Aasha Kohime
 Share

You are about to reply to a thread that has been inactive for 3389 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

without seeing a script then dunno what your friends issue is but generally can release perms when avatar is sitting or attach

cant release if avatar is not sit or attach. (is a bit of a bughole this)

example test

 

releasePerms(key id){    integer perms = llGetPermissions();    if (perms & PERMISSION_TRIGGER_ANIMATION)    {        list a = llGetAnimationList(id);        integer c = llGetListLength(a);        integer i;        for (i = 0; i < c; i++)            llStopAnimation(llList2String(a, i));    }    // include any other stuff that needs to be stopped here    // ... examples    /*        if (perms & PERMISSION_TAKE_CONTROLS)            llReleaseControls();        if (perms & PERMISSION_CONTROL_CAMERA)            llClearCameraParams();     */       llRequestPermissions(id, 0);}default{    state_entry()    {        integer perms =             PERMISSION_TRIGGER_ANIMATION            /*              | PERMISSION_TAKE_CONTROLS              | PERMISSION_CONTROL_CAMERA            */            ;       llRequestPermissions(llGetOwner(), perms);    }       touch_start(integer num_detected)    {        key id = llDetectedKey(0);         if (id == llGetOwner())        {            releasePerms(id);                        // test : will gen a perms warning error            //        when avatar is sitting or attach            // perms are not released when avatar is            // not sitting or attached. is a bughole this            llStartAnimation("dance1");          }        }    run_time_permissions(integer perms)    {        // should be the same        llOwnerSay((string)perms + " : " + (string)llGetPermissions());                if (perms & PERMISSION_TRIGGER_ANIMATION)            llStartAnimation("dance1");     }}

 

 

 

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3389 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...