llRezObject
LSLvoid 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
| Type | Name | 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);
}
}The Linden Scripting Library — what every SL-compatible grid provides.