Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rezzing all items in a box or folder

Ina Centaur
IC
Join date: 31 Oct 2006
Posts: 202
01-13-2007 17:48
How do you quickly or (scriptly ;) rez an instance of all the 50+ items in a box or folder?
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-13-2007 23:24
From: Ina Centaur
How do you quickly or (scriptly ;) rez an instance of all the 50+ items in a box or folder?


use llRezObject inside a loop. The biggest problem would be positioning them nicely

CODE

default
{
touch_start(integer total_number)
{
vector pos = llGetPos();
integer i;
integer count = llGetInventoryNumber(INVENTORY_OBJECT);
for(i = 0;i < count; ++i)
{
pos.z += (i * 0.5);
string name = llGetInventoryName(INVENTORY_OBJECT, i);
llRezObject(name, pos, ZERO_VECTOR, ZERO_ROTATION, i);
llSleep(1);
}
}
}


BUT be aware of the grey goo fence.