// THis loops through all objects in inventory, and rezzes them. // fn_rez_all_objects() { integer TOTAL_OBJECTS = llGetInventoryNumber(-1); integer i; //counter for(i = 0; i < TOTAL_OBJECTS; i++) { string inv_name = llGetInventoryName(-1, i); //the name of inv item on this loop if(llGetInventoryType(inv_name) == 6)//checks if its an object { llRezObject( inv_name, llGetPos(), <0,0,0>, ZERO_ROTATION, 0 );//start parm to trigger rezzed script } } } default { state_entry() { llSay(0, "Touch me to rez all the objects in my inventory..."); // } touch_start(integer total_number) { if(llDetectedKey(0) == llGetOwner()) { fn_rez_all_objects(); } }