string llDetectedName(integer number)
the name of detected object number
(returns an empty string
is not valid sensed
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.
Since the name of an object can be freely set by the user, it may be an extremely large string (potentially several k in size) which will cause your script to halt with a stack/heap collision error as soon as it is loaded into a variable. Some residents have given objects long names with the deliberate intent of crashing scripts. The max a name can legitimately be is 63 characters without using LSL, and 255 characters with LSL; however, a previously existing exploit allowed names much longer than this, and although the exploit has been removed, it is possible that the named objects were not.
functions will only return a meaningful value in the collision()
, or touch_end()
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.
Q: Is there a way of listing the detected names?
A: Use a for loop incrementing up to the number of detected names and use the for loop counter as the number parameter in this function.
This article wasn't helpful for you? Maybe the related article at the LSL Portal
is able to bring enlightenment.
| Detection Jasa SEO Jasa SEO Murah Sepatu Online Toko Sepatu Online Sepatu Sepatu Murah Sepatu Safety Sepatu Futsal Cheapes Hostgator Coupon Link Booking Televisori offerte Notebook Offerte Berita Terkini Internet Marketer Muda Internet Marketer Indonesia Portatile Apple RDAnet Lorks Karikatur Bisnis Modal Kecil Bisnis UKM Berita Terbaru Iklan Baris Jasa SEO Jasa SEO Murah SEO Indonesia Konsultan SEO SEO Belajar SEO Kursus SEO Kursus SEO Murah Jam Tangan Casio Jam Tangan Casio Jam Tangan Murah Jam Tangan Grosir Baju Terbaru Grosir Baju Baju Terbaru Grosir Baju Murah Bisnis Online Belajar SEO Kerupuk Kerupuk kulit Social Bookmark Dofollow Social Bookmark Kumpulan Puisi Kirim Puisi bola hantu Penumbuh Rambut Penumbuh Rambut timbangan WBC Wonogiri Jasa SEO Murah Jasa SEO Jam Tangan Murah