Jump to content

llSensor Filters


Xeph Brunsen
 Share

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

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

Recommended Posts

When filtering an llsensor instead of using NULL_KEY for the id can we use something to filter it to only detect objects owned by the same owner as the object the sensor is is ect.

Maybe llGetOwnerKey ?

llGetOwner doesnt detect it whereas ofcourse NULL_KEY Does

 

I'm trying to filter things as tight as possible and so far have the sensor detecting by both object name and distance but would love to be able to filter it to even object owner.

 

llsensor as of right now:

llSensor( PrevVersion, NULL_KEY, SCRIPTED, 2.0, PI );

 

Link to comment
Share on other sites

You can't do it in the llSensor function, but you can certainly do it with if statements in the sensor event.....

 

    sensor (integer num)    {        while (~(--num))        {            llSay(0,"Number " + (string)num + ":");            if ( llGetOwnerKey(llDetectedKey(num)) == llGetOwner() )            {                llSay(0,llDetectedName(num));            }            else            {                llSay(0,llDetectedName(num) + ": Not yours");            }        }    }

 

 

 

Link to comment
Share on other sites

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