|
ron Spaight
Registered User
Join date: 27 Mar 2005
Posts: 37
|
12-29-2006 02:55
I am looking for a script that when you touch something then an object that is inside that prim will pop up. I hope that makes sence lol. But ...... so you have a prim and you slide another prim inside and then when you touch the first prim the second one pops up on top of the first one. I dont want it to just give me the object to my inventory and then I have to rez it. Any suggestions? Thanks again
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
12-29-2006 02:58
You can have the prim rez the new object but it will still be owned by the original owner.
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
12-29-2006 02:59
Question
WOuld you be satisfied with the second object being invisible on top of the first, and when you touch the first, the second becomes visible?
Or do you actually want the object to be "Rezzed" when you touch the containing object?
(the action is different. the second uses fewer prims while the onbject is unrezzed, but the first way will work as long as you can rez it.. meaning that later prims cannot eat into the needed number of prims to rez the second object)
It might be easier to help you, if we knew a bit more about what you want to do with this action.
If it's a jack in the box or food on a table, the first method is better. if you want to rez a driveable vehicle, the second is the way to go. If you want 1 prim to physically move in relation to a second prim (think.. switchblade) there's actually a third mechanism to use.
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
|
12-29-2006 07:51
If I understand your question. Example: Prim 1: 1m x 1m x 1m Prim 2: .2m x .2m x .2m Prim 1 & 2 are linked into an object. Prim 1 has script w/ touch_start() event. Script uses llMessageLinked http://lslwiki.com/lslwiki/wakka.php?wakka=llMessageLinked to send message to Prim 2. Prim 2 has script that uses llSetPrimitiveParams http://lslwiki.com/lslwiki/wakka.php?wakka=llSetPrimitiveParams to change its size and position so that it appears next to Prim 1. There are more specifics that go into this, specifically with setting the prim size and moving it in relation to the position of Prim 1, however this should generally describe the process for you to follow.
|