Paul Wardark
Wait, what?
Join date: 10 Jan 2009
Posts: 383
|
08-27-2009 17:29
I know I can use llSensorRepeat to search for avatars using the AGENT interger. For example, llSensorRepeat(target, NULL_KEY, AGENT, 96.0, PI, 0.5);
My question is, can this be set to search for avatars AND objects? Would it be as easy as llSensorRepeat(target, NULL_KEY, AGENT/PASSIVE, 96.0, PI, 0.5); or is that wishful thinking?
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
08-27-2009 17:39
"Values can be combined to search in multiple categories using bitwise OR (|). For example, llSensor("", "", AGENT | ACTIVE, 25, PI) would search for both agents and physical objects"
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
Paul Wardark
Wait, what?
Join date: 10 Jan 2009
Posts: 383
|
08-27-2009 17:45
Awesome, thanks.
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
08-27-2009 19:20
there are some weird behaviors cataloged for combination searches... check the wiki to be sure you can get what you want from it. From: from LSL wiki Combining SCRIPTED and Other Flags Combining the SCRIPTED flag with others can lead to somewhat unintuitive results (this is because AGENT, PASSIVE and ACTIVE behave inclusively. SCRIPTED is not inclusive and will exclude non-scripted targets, like avatars, from the detected set):
* SCRIPTED will detect active scripts, or moving physical objects containing a script (active or not). * AGENT | SCRIPTED will detect active scripts, or moving physical objects containing a script (active or not); this will not detect agents! * ACTIVE | SCRIPTED will detect active scripts, or moving physical objects that contain a script (active or not); this will not detect moving physical objects that are not scripted. * PASSIVE | SCRIPTED will detect active scripts, non-scripted non-physical objects, and physical objects containing a script (active or not); it does not detect stationary physical objects that are not scripted.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|