Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rezzing Objects from Contents Folder of Prim

Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
03-16-2007 10:37
Hi,

I have created a prim with a script inside it, so that when the prim is touched a Menu HUD appears giving the user a choice of three objects. After selecting the required item the item is rezzed for the user, 1m above above the prim. So far so good.

This works fine for objects that are in my inventory, but I want to put these three objects into the Contents Folder of the prim that currently contains the script.

Please help save my sanity and tell me how to rez an object that is located in the Contents Folder of a Prim.

Rock
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
03-16-2007 10:38
llRezObject();
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
ArchTx Edo
Mystic/Artist/Architect
Join date: 13 Feb 2005
Posts: 1,993
03-17-2007 10:39
This script will rez an object named "something" when the prim is touched.


CODE
//touch to rez object

default
{
touch_start(integer total_number)
{
llWhisper(0, "Rez Object");
llRezObject("something", llGetPos() + <0, 0, 2>, ZERO_VECTOR, llGetRot(), 0);//replace something with name of object you want to rez
}
}
_____________________

VRchitecture Model Homes at http://slurl.com/secondlife/Shona/60/220/30
http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=2240
http://shop.onrez.com/Archtx_Edo