Object rez
<lsl> //gives inventory to object when it rezzes. string inventory; string object;
default {
touch_start(integer count)
{
object=llGetInventoryName(INVENTORY_OBJECT,0); //get name of the 1st object in inventory
llRezObject(object, llGetPos() + <0.0, 0.0, 0.5>, ZERO_VECTOR, ZERO_ROTATION, 0); //rez the 1st object
}
object_rez(key id)
{
inventory=llGetInventoryName(INVENTORY_OBJECT,1); //get name of the 2nd object in inventory
llGiveInventory(id,inventory); //give 2nd object to 1st object when rezzed
}
} </lsl> |helpers |also_header |also_events= |-style="vertical-align:top;" | style="color:gray;" |• | on_rez | style="color:gray;" | – | Triggered when the object the script is in is rezzed | |also_functions= |-style="vertical-align:top;" | style="color:gray;" |• | llRezObject | style="color:gray;" | – | Used to rez an object at the center of mass | |-style="vertical-align:top;" | style="color:gray;" |• | llRezAtRoot | style="color:gray;" | – | Used to rez an object at the root | |also_articles |also_footer |notes |mode |cat1=Rez |cat2 |cat3 |cat4 }}