LSL Wiki Mirror 10-5-2006: llDetectedName

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
string llDetectedName(integer number)

Returns the name of detected object number (returns an empty string if number is not valid sensed object).

If the detected target has left the region or ceased to exist, this function will return the key of the object/agent instead of the name.

Note: The llDetected* functions will only return a meaningful value in the collision(), collision_start(), collision_end(), sensor(), touch(), touch_start(), or touch_end() events.

Q: How do I figure out what to use for number? I'm confused.
A: For most uses, if you're using a one-off event like collision or touch_start, you can use 0, the first object number. If you're using a sensor, try a for loop, with number incrementing, to cycle through all detected objects.


Functions | Detection
There is no comment on this page. [Display comments/form]