Jump to content
  • 0

Is there a script that prevents sitting on a prim?


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

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

Question

  • 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 post
Share on other sites

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 post
Share on other sites
You are about to reply to a thread that has been inactive for 3506 days.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...