|
Mathieu Basiat
Wavemaster
Join date: 24 Apr 2006
Posts: 57
|
07-20-2006 20:18
i need to rez an object at the parents orientation...whatever it is pointing at (z access a pyramid) i want the rezzed object to point at...any tips?
|
|
Dustin Widget
Script Monkey for hire
Join date: 15 Feb 2006
Posts: 101
|
07-20-2006 20:20
get the rotation and then pass it onto the object that has just been rezzed
|
|
Mathieu Basiat
Wavemaster
Join date: 24 Apr 2006
Posts: 57
|
07-20-2006 20:48
so here is part of my code
and it never changes the rezzed objects rot
rotation xxx = llGetRot(); llSay(0, (string)xxx); llRezObject("surfboard", llGetPos() + <0, 0, .2>, ZERO_VECTOR, xxx, 0);
Am I going nuts?
|
|
Dustin Widget
Script Monkey for hire
Join date: 15 Feb 2006
Posts: 101
|
07-20-2006 21:23
I don't know what to say... I just tested it and it seems to work just fine for me default { touch_start(integer total_number) { vector pos = llGetPos(); pos.z += 1; llRezObject("rez test", pos, ZERO_VECTOR, llGetRot(), 1); } }
|
|
Mathieu Basiat
Wavemaster
Join date: 24 Apr 2006
Posts: 57
|
07-21-2006 09:48
ok, I'm an idiot! The object that was being rezzed was also setting its rotation too! slaps head!
thx for your help
|
|
Dustin Widget
Script Monkey for hire
Join date: 15 Feb 2006
Posts: 101
|
07-21-2006 10:06
no problem
|