Object rez

From Second Life Wiki
Revision as of 14:25, 9 March 2007 by Lowell Fitzgerald (talk | contribs) (added example)
Jump to navigation Jump to search

Description

Event: object_rez( key id ){ ; }

Triggered when task rezes in another task

• key id

Caveats


Examples

//simple recursive rezzing
string inventory;
default
{
    changed(integer change)
    {
        if(change & CHANGED_INVENTORY)
        {
            inventory=llGetInventoryName(INVENTORY_OBJECT,0);
            llRezObject(inventory,llGetPos(),ZERO_VECTOR,ZERO_ROTATION,0);
        }
    }
    object_rez(key id)
    {
        llGiveInventory(id,inventory);
        llRezObject(inventory,llGetPos(),ZERO_VECTOR,ZERO_ROTATION,0);
    }
}

See Also

Functions

•  llRezObject Used to rez an object at the center of mass
•  llRezAtRoot Used to rez an object at the root

Deep Notes

Signature

event void object_rez( key id );