Don't click here unless you want to be banned.

LSL Wiki : object_rez

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl338.us.archive.org
object_rez(key id)

Triggered when a prim rezzes another object from its inventory via llRezObject. The id is the globally unique key for the object it just rezzed.

This event is raised for all scripts inside the prim that called llRezObject. This allows for having one script do the actual rezzing while another script receives the object_rez events and handles them (for example using llCreateLink to link a newly created prim to the original, root, prim).

Note: object_rez will be triggered only for scripts within the same prim as the script that rezzed the new object. object_rez will not be triggered in scripts contained within other prims of a linked object. It doesn't matter if the rezzer script is contained within the parent or child prims--either will work; object_rez triggers will just be limited to that prim.

This no longer appears to be the case from SL 1.18.3.2-RC and up. If there is no event handler in the child prim, the event will always be passed to the root prim. If there is an event handler in the child prim, however, the event isn't passed to the root prim. - Acru Joliat

object_rez is not to be confused with on_rez which is raised in the newly rezzed object, not the prim that rezzed it.

Example:
default {
    state_entry() {
        llRezObject("Bubu", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 1);
    }
    
    object_rez(key id) {
        llSay(0, "I made a bubu and its key is " + (string)id);
    }
}

To keep an object's inventory in rezzed objects (from the forums):

object_rez(key child)
{
    llGiveInventory(child,llKey2Name(child));
}


Events | Inventory | Object | Rez 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
There are 2 comments on this page. [Display comments/form]