These forums are CLOSED. Please visit the new forums HERE
I need help fixing a script |
|
|
Glen Irvine
Registered User
Join date: 24 Aug 2006
Posts: 12
|
10-13-2006 18:29
i need the script to look forward instead of at the sun/moon
|
|
Glen Irvine
Registered User
Join date: 24 Aug 2006
Posts: 12
|
10-13-2006 18:29
float Mass;
vector Position; vector SunPos; default { state_entry() { Mass = llGetMass(); Position = llGetPos(); llMoveToTarget(Position,0.2); llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y, TRUE); //llSetStatus(STATUS_PHYSICS,TRUE); llSleep(1); llSetTimerEvent(1); } on_rez(integer param) { llResetScript(); } timer() { SunPos = llGetSunDirection(); if (SunPos.z < 0) { SunPos = SunPos * -1; } SunPos.z = 0; llLookAt(llGetPos() + SunPos, Mass/2, Mass/20); } } |
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
10-13-2006 18:46
i need the script to look forward instead of at the sun/moon "forward"? Sorry you lost me there Glen. You want to look WHERE in relation to the position of the sun? PS to make your code more readable when posting, post like this: [ PHP ] (no spaces) Before your script and then [ /PHP ] (no spaces) and it will then show like this: CODE
You will see this and more tips at the top in the sticky: /54/46/121753/1.html _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
|
Glen Irvine
Registered User
Join date: 24 Aug 2006
Posts: 12
|
10-15-2006 07:49
Oh sorry about that, i wanted the script to look straight forward in front of you.
|