Wandering Soulstar Posted November 30, 2018 Share Posted November 30, 2018 Hi All, I'd like to set the animation (pose) of an AV when they sit on a prim, without the requesting of permissions. This must be possible as most any chair I have does not ask for this, yet I cannot seem to see in the Wiki how this is accomplished. Any help? Thanks in advance, Wanda Link to comment Share on other sites More sharing options...
Cindy Evanier Posted November 30, 2018 Share Posted November 30, 2018 11 minutes ago, Wandering Soulstar said: Hi All, I'd like to set the animation (pose) of an AV when they sit on a prim, without the requesting of permissions. This must be possible as most any chair I have does not ask for this, yet I cannot seem to see in the Wiki how this is accomplished. Any help? Thanks in advance, Wanda Try the opensource AVsitter system. https://avsitter.github.io/avsitter2_home.html Link to comment Share on other sites More sharing options...
Wandering Soulstar Posted November 30, 2018 Author Share Posted November 30, 2018 Appreciate the pointer .. but this is well over the top for what I need, and in any case, looking through the code, as far as I can see they are still requesting permission of the AV. Link to comment Share on other sites More sharing options...
Qie Niangao Posted November 30, 2018 Share Posted November 30, 2018 For scripts in objects worn or sat upon, some permissions are granted without explicitly asking, merely by calling llRequestPermissions(). The script must still call that function before using the permission (in this case, PERMISSION_TRIGGER_ANIMATION) and should wait for the corresponding run_time_permissions event. 1 Link to comment Share on other sites More sharing options...
Wandering Soulstar Posted November 30, 2018 Author Share Posted November 30, 2018 Ahhh ... so the following: changed(integer change) { //see if we have someone sitting ... if (change & CHANGED_LINK) { //code check to see if seated AV and get their link //... //get their key key user = llGetLinkKey(userLink); //call permissions .. will not trigger an ask to the iser llRequestPermissions(user, PERMISSION_TRIGGER_ANIMATION); //continue in run_time_permissions event } } run_time_permissions(integer permissions) { if (perm & PERMISSION_TRIGGER_ANIMATION) { //code to set sit animation } } Thanks for the clarification @Qie Niangao 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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