Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rezzing in the Right Direction?

Rocky Rutabaga
isn't wearing underwearâ„¢
Join date: 14 Apr 2006
Posts: 291
10-07-2008 12:04
I have a log flume ride and I've built a rezzer that drops the temporary log into the flume without a problem. However, if I would want to turn the track and the rezzer to face in a different direction, the rezzer still thinks the flume faces the old way.

I thought I could simply link the rezzer to the flume/track and it would use that as its orientation, but I think it's orientating to SL not the prims. Any thoughts?
_____________________
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
10-07-2008 12:39
it might help to post the script, or at least the part that rezzes the log. i assume the rez command looks something like this

llRezObject("log", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 0);

instead of zero rotation, you can change it to llGetRot

llRezObject("log", llGetPos(), ZERO_VECTOR, llGetRot(), 0);

additionally, if you're rezzing it at an offset from the rezzer it would be something like

llRezObject("log", llGetPos() + offset * llGetRot, ZERO_VECTOR, llGetRot(), 0);
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Rocky Rutabaga
isn't wearing underwearâ„¢
Join date: 14 Apr 2006
Posts: 291
10-07-2008 12:48
Here's the script:

CODE

integer gCorrectAmount = 25;

default
{
state_entry()
{
llSetClickAction(CLICK_ACTION_PAY);
llSetPayPrice(PAY_HIDE, [gCorrectAmount]);

}

money(key id, integer amount)
{

if (amount == gCorrectAmount)
{

llSay(0,"Thank you, " + llKey2Name(id) + ".");
llRezObject("Rocky's Inner Tuber", llGetPos() + <0,3.0,4.0>, <0.0,0.0,0.0>, <0.0,0.0,0.0,1.0>, 0);
}


}
}
_____________________
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
10-07-2008 12:55
yep, what i explained above in the last example is all that needs to be changed

From: someone

integer gCorrectAmount = 25;

default
{
state_entry()
{
llSetClickAction(CLICK_ACTION_PAY);
llSetPayPrice(PAY_HIDE, [gCorrectAmount]);

}

money(key id, integer amount)
{

if (amount == gCorrectAmount)
{

llSay(0,"Thank you, " + llKey2Name(id) + ".";);
llRezObject("Rocky's Inner Tuber", llGetPos() + <0,3.0,4.0>*llGetRot(), <0.0,0.0,0.0>,llGetRot(),0);
}
}
}
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Rocky Rutabaga
isn't wearing underwearâ„¢
Join date: 14 Apr 2006
Posts: 291
10-07-2008 13:20
Cool Beans! Thanks so much.
_____________________