Jump to content

Automatic Sit Animation


Wandering Soulstar
 Share

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

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

Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1974 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...