Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

collision_start switch to RezObject

ArchTx Edo
Mystic/Artist/Architect
Join date: 13 Feb 2005
Posts: 1,993
02-04-2007 07:45
This script was developed with the helpful advice of others in the scripting forum. It can be used to rez an object when somone walks over or bumps into the prim it is in or any prim linked to it. It has been tested in SL.

CODE
default 
{
collision_start(integer total_number)
{
state RezObject;
}
}


state RezObject
{
state_entry()
{
llSetTimerEvent(30);
//llSay(0, llDetectedName(0) + "Who dares to trespass here?!?!");
llRezObject("Object", llGetPos() + <0, 0, 1>, ZERO_VECTOR, llGetRot(), 0);

}

timer()
{
llSetTimerEvent(0);
state default;
}
}
_____________________

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
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
02-06-2007 11:45
/54/90/164677/1.html
_____________________
i've got nothing. ;)
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
02-08-2007 17:47
Works great! Now how can I get it so the one that bumps will be the owner of the object rezzed?
Joker Opus
Registered Usimibober
Join date: 9 May 2006
Posts: 363
Hmm
02-16-2007 19:58
Why not just

default
{
collision_start(integer collide)
{
llRezObject("Object", llGetPos() + <0,0,1>, ZERO_VECTOR, ZERO_ROTATION, 1);
}
}

-Or maybe Im missing something
_____________________
Jøkêr Øpüs
PLEASE FIX THE WEAPON TESTING SANDBOX - AN OLD SECONDLIFE HANGOUT!