Detection functions (llDetected*
) determine information about objects
detected by sensors
, and collision events
All detection functions
have one integer parameter
in common, which is an index (ranging from 0
to total_number - 1
) of the found targets of a sensor, touch, or collision event. Negative index values
do not work, nor do ones that are equal to or greater than the number of entries taken from the event paramater. If an event does not specify this value it is zero. When an index falls outside the valid range, default
values are return
If a detection function is called from a user-defined function
, the function inherits the data from the event that called
Q: Do the detection functions make calls to either the asset or data server?
A: No. As clarified by Kelly Linden here, all the possible data that could be returned by the detection functions is stored during the sensor call.
Q: I'm not getting anything returned when the object is phantom. Is there a workaround for that?
A: Use llVolumeDetect, just be sure to let the function turn it phantom.