From Second Life Wiki
(Redirected from
LSL llRezAtRoot)
RezAtRoot
llRezAtRoot
Description
Function: llRezAtRoot( string inventory, vector position, vector velocity, rotation rot, integer param );
Instantiate inventory object rotated to rot with its root at position, moving at velocity, using param as the start parameter
| • string
| inventory
| –
| an object in the prim's inventory
|
|
| • vector
| position
| –
| initial position (in region coordinates)
|
|
| • vector
| velocity
| –
| initial velocity
|
|
| • rotation
| rot
| –
| initial rotation
|
|
| • integer
| param
| –
| on_rez event parameter and value returned by llGetStartParameter in the rezzed object.
|
|
Causes a hard delay based on the mass of the object rezzed.
To rez an object so its center is at pos (instead of the root) use llRezObject instead.
Caveats
- This function causes the script to sleep for 0.1 seconds.
- If inventory is missing from the prim's inventory or it is not an object then an error is shouted on DEBUG_CHANNEL.
- Silently fails to rez inventory if pos is more than 10 meters away.
- Silently fails if you don't have offline building rights on the land. Which means that you need to either: Own the land yourself. Be in the group that owns it, and the allow group to build parcel flag has to be enabled. Or everyone should be allowed to build. You can also deed the object to the group that owns the land, this will always work.
See Also
Events
| •
| object_rez
| –
| triggered when this object rezzes an object from inventory
|
|
Functions