|
Yiffy Yaffle
Purple SpiritWolf Mystic
Join date: 22 Oct 2004
Posts: 2,802
|
02-09-2008 14:31
I know your gonna ask "why is someone who has been here so long asking such a newbish question?". I guess we all need a little help from time to time. I'm trying to build a Rezzer for a MoonGate I'm creating. It's HUD based and designed to rez the Portal directly in front of you no matter which direction your facing. So far it works, but with 1 small problem. I'd like for it to rez the object a bit further away then it does. So far this is what i got. It rezzes perfectly except it's too close to me. The portal is about 10 meters in size so it needs to be further away.  i just don't know what i need to do for that. touch_start(integer number) { vector vel; vector pos; rotation rot; rot = llGetRot(); vel = llRot2Fwd(rot); pos = llGetPos(); pos = pos + vel; vel = vel; llRezObject("Object", pos, vel, rot, 0); }
|
|
Yiffy Yaffle
Purple SpiritWolf Mystic
Join date: 22 Oct 2004
Posts: 2,802
|
02-09-2008 14:34
So far i tried adding "+ <X,Y,Z>" after "pos" in llRezObject, but it doesn't give the results i need. It rezzes it in the distance but not exactly in front of me as i intended.
|
|
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
|
02-09-2008 15:16
Well, in principle this seems to work for me: default { touch_start(integer total_number) { llRezObject("Object", llGetPos() + (llRot2Fwd(llGetRot())*4), ZERO_VECTOR, llGetRot(), 0); } } ...which doesn't look so very different to what you started with. Increasing the multiplier moves the cube further forwards. I've also only done this with standard cubes 
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
02-09-2008 15:21
// "temp3.esl" // "Feb 9 2008", "18:20:30"
string object;
default { state_entry() { object = llGetInventoryName(INVENTORY_OBJECT, 0); } touch_start(integer n) { llRezObject(object, llGetPos() + (<10, 0, 0 > *llGetRot()), ZERO_VECTOR, ZERO_ROTATION, 0); } }
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Yiffy Yaffle
Purple SpiritWolf Mystic
Join date: 22 Oct 2004
Posts: 2,802
|
02-09-2008 15:25
Thanks guys. ^_^ That helped and it works now. So basically i had a lot of unnecessary lines. 
|