Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to exclude object owner from sensor pass?

Hanumi Takakura
Registered User
Join date: 24 May 2006
Posts: 57
03-04-2007 19:35
Hello. I'm trying to script a sensor that would look at targets other than the owner. How do I get to exclude the owner from the sensor pass? Thanks in advance.
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
03-04-2007 20:11
When doing whatever you do with the sensor return data, include a filter such as

CODE

if( llDetectedKey( n ) != llGetOwner() )
{
// your code here
}


Note, if the sensor is in an attachment, the avatar it's attached to (by definition, its owner) is already excluded.
Hanumi Takakura
Registered User
Join date: 24 May 2006
Posts: 57
03-04-2007 21:39
Ok. Thanks.