Xeph Brunsen Posted September 7, 2011 Share Posted September 7, 2011 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 More sharing options...
Rolig Loon Posted September 7, 2011 Share Posted September 7, 2011 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 More sharing options...
Xeph Brunsen Posted September 7, 2011 Author Share Posted September 7, 2011 Gotcha , Yeah ended up using the if else statements so that we could add a few extra goodies in there as well. Thanks a bunch. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now