Difference between revisions of "LlRezObject"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function/inventory|inventory|uuid=false}}
{{LSL_Function/inventory|inventory|uuid=false|type=object}}
{{LSL_Function
{{LSL_Function
|func_id=104|func_sleep=0.1|func_energy=200.0
|func_id=104|func_sleep=0.1|func_energy=200.0

Revision as of 18:54, 2 March 2007

Summary

Function: llRezObject( string inventory, vector pos, vector vel, rotation rot, integer param );
0.1 Forced Delay
200.0 Energy

Instanciate inventory object at pos with velocity vel and rotation rot with start parameter param

• string inventory an object in the inventory of the prim this script is in
• vector pos position
• vector vel velocity
• rotation rot rotation
• integer param on_rez event parameter and value returned by llGetStartParameter.

Causes a hard delay based on the mass of the object rezzed. The root of inventory is not at pos but the center of inventory is.
To have the root prim at pos use llRezAtRoot 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.

Examples

See Also

Events

•  object_rez triggered when this object rezzes an object from inventory

Functions

•  llRezAtRoot Rezzes the object at the requested position
•  llGetStartParameter

Deep Notes

Signature

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