Jump to content
  • 0

How to stop script executing if object is being sat on?


Aerikah Xeltentat
 Share

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

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

Question

  • 0

Hi again, Aerikah,

Though there are a few here in Answers that have some scripting knowledge, that's not really what this area is about. We usually handle questions about how SL does or doesn't work.

You'll have better luck (and perhaps better answers) over in the LSL Scripting forum...

https://community.secondlife.com/t5/LSL-Scripting/bd-p/LSLScripting

And don't be surprised if most of us make you work a little to get your answers. We want you to learn LSL the hard way, which is the only way!

That said, read these...

;-).

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi again, Aerikah,

Though there are a few here in Answers that have some scripting knowledge, that's not really what this area is about. We usually handle questions about how SL does or doesn't work.

You'll have better luck (and perhaps better answers) over in the LSL Scripting forum...

https://community.secondlife.com/t5/LSL-Scripting/bd-p/LSLScripting

And don't be surprised if most of us make you work a little to get your answers. We want you to learn LSL the hard way, which is the only way!

That said, read these...

;-).

Link to comment
Share on other sites

  • 0

When you sit on an object, you become a link in the object's linkset.  Specifically, you become the last link. So, look at the last link to see if it is an avatar.  There are several ways to do that.  Perhaps the easiest is to use the old trick:

key UUID_of_suspected_agent = llGetLinkKey(llGetNumberOfPrims());if (llGetAgentSize(UUID_of_suspected_agent) != ZERO_VECTOR){    llSay(0,"Someone named " + llKey2Name(UUID_of_suspected_agent) + " is sitting on me.");}

l

  • Like 2
Link to comment
Share on other sites

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

×
×
  • Create New...