These forums are CLOSED. Please visit the new forums HERE
llSensoring for only physical objects |
|
|
lmho Impfondo
Registered User
Join date: 7 Apr 2005
Posts: 31
|
05-23-2005 16:43
Is this possible? I want to only sensor for physical objects. Currently when sensoring for ACTIVE, it catches both physics and scripted objects. Is there a way to sensor for only physics objects?
|
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
05-24-2005 15:23
Bit operations are my bane, but you should be able to do this with something like this:
CODE llSensor("Name","Key",ACTIVE | !SCRIPTED,range,arc);Now, guaging how good I am with this subject, that's probably wrong - but here's another thread on the subject. Ignore my response to said thread. If that doesn't work, as it probably won't, you could just run two sensors - one for ACTIVE, one for SCRIPTED - and compare the returns. _____________________
---
|
|
Stinky Queso
Second Life Resident
Join date: 29 Nov 2004
Posts: 53
|
05-25-2005 10:03
Wouldnt ACTIVE | !SCRIPTED be saying "find all active scripts OR all non scripted objects" which would find anything. The ~ operator is what would be appropriate here, but it doesnt work. Comparing with checks isnt really a viable option anyway, I want this script to be as fast as possible.
edit: oh no ive been found out the internet police are after me now! |
|
Hiro Turnbull
Freelance Scripter
Join date: 20 Apr 2005
Posts: 24
|
05-25-2005 11:17
What you want to use is the code below. Here is a link to explain it.
http://secondlife.com/badgeo/wakka.php?wakka=llSensor llSensor("Name" ,"Key" ,3 ,range ,arc); Hope that helps. |
|
lmho Impfondo
Registered User
Join date: 7 Apr 2005
Posts: 31
|
05-25-2005 15:14
yeah that works great, I cant believe I missed that. thanks
|
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
05-25-2005 20:27
Heh. I forgot about the "hidden" constant myself. Thanks for bringing that up.
As for how bits function, it's a long story - but I'm not a good person to ask about it. I said it probably wouldn't work, didn't I? ![]() _____________________
---
|