You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This is an old revision of the document!
llRezObject(string name, vector pos, vector vel, rotation rot, integer param)
Rez an object considering the centre of its bounding box as reference.
WARNING
This function has a bug that affects the position of the rezzed object when the rotation of the rezzed object changes, and its use is discouraged. Use llRezAtRoot
instead.
The name of the object to rez, as a string (must be in the prim's inventory).
Position (as a vector in region coordinates) where to place the centre of the bounding box of the rezzed object.
If the object to rez is physical, this vector indicates the initial velocity it should have. If it's not physical, this parameter is ignored.
Parameter (an integer) to pass to the child. The child can read this parameter using llGetStartParameter
() or the param
of the on_rez event.
rot
is not taken into account when calculating the position of the root of the rezzed object, but the original rotation when the object was taken is (bug SVC-6578). If the rez rotation rot
is different from the rotation of the object when it was taken, this bug will happen, resulting in the centre of the bounding box not ending up in the specified position pos
.llRezObject("Bullet", llGetPos(), ); // will do xxx
default { state_entry() { llRezObject(1, 2); } }
llRezAtRoot
does such and such