Jump to content
  • 0

Is there a script that prevents sitting on a prim?


Sally Ellisson
 Share

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

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

Question

2 answers to this question

Recommended Posts

  • 0

 


//Unsit on Sit, requires a sit target

default

{

    state_entry()

    {

        llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); //needed for llAvatarOnSitTarget to work. The vectors components must not all be set to 0.

    }

    changed(integer change) //event changed

    {

        if (change & CHANGED_LINK) //event changed and it has something to do with linking or avatar sitting

        {

            key user = llAvatarOnSitTarget();

            if (user) //the changed event is an avatar sitting

                llUnSit(user); //unsit the avatar on the sit target

        }

    }

}

 

Put this script in any prim and no one can sit. It will unsit them

You can also Look In The Scripting Library Forums for cool stuff :)

http://community.secondlife.com/t5/LSL-Scripting-Library/bd-p/LSLScriptingLibrary

 

 

Link to comment
Share on other sites

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