Difference between revisions of "Object rez"

From Second Life Wiki
Jump to navigation Jump to search
(Posting an unrestrained self-replicator as an example is a bad idea.)
Line 23: Line 23:
|helpers
|helpers
|also_header
|also_header
|also_events
|also_events=
{{LSL DefineRow||[[on_rez]]|Triggered when the object the script is in is rezzed}}
|also_functions=
|also_functions=
{{LSL DefineRow||[[llRezObject]]|Used to rez an object at the center of mass}}
{{LSL DefineRow||[[llRezObject]]|Used to rez an object at the center of mass}}

Revision as of 19:02, 9 March 2007

Description

Event: object_rez( key id ){ ; }

Triggered when the object rezzes an object.

• key id

Caveats


Examples

//gives inventory to object when it rezzes.
string inventory;
string object;

default
{
    touch_start(integer count)
    {
        llRezObject(object, llGetPos() + <0.0, 0.0, 0.5>, ZERO_VECTOR, ZERO_ROTATION, 0);
    }
    object_rez(key id)
    {
        llGiveInventory(id,inventory);
    }
}

See Also

Events

•  on_rez Triggered when the object the script is in is rezzed

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 );