Forgot? Join

Scripting

LSL Guide

Every script function this grid actually runs, read straight from the region software rather than copied from a wiki — including the wolf* functions that exist only here.

Functions · Constants

llRezObject

LSL
void llRezObject(string inventory, vector pos, vector vel, rotation rot, integer param)

Instantiate owners InventoryItem at Position with Velocity, Rotation and with start StartParameter.\ Creates object's inventory item at Position with Velocity and Rotation supplied. The StartParameter value will be available to the newly created object in the on_rez event or through the llGetStartParameter function.\ The Velocity parameter is ignored if the rezzed object is not physical.

Parameters

TypeName What it does
string inventory The name of the object in the prim's contents.
vector pos Where to rez it, region metres, within 10 m of this prim.
vector vel Initial velocity, m/s; ZERO_VECTOR for none.
rotation rot Initial rotation.
integer param An integer the rezzed object receives on start.

Example

default
{
    touch_start(integer n)
    {
        llRezObject("Ball", llGetPos() + <0, 0, 1>, ZERO_VECTOR, ZERO_ROTATION, 1);
    }
}
Sleeps 0.1s
Energy 200

The Linden Scripting Library — what every SL-compatible grid provides.

More in LSL