secondlifescripters Digest, Vol 34, Issue 4

Innula Zenovka innula.zenovka at
Sat Jan 10 07:34:54 PST 2009

On Fri, Jan 9, 2009 at 8:00 PM, <
secondlifescripters-request at> wrote:

> Send secondlifescripters mailing list submissions to
>        secondlifescripters at
> To subscribe or unsubscribe via the World Wide Web, visit
> or, via email, send a message with subject or body 'help' to
>        secondlifescripters-request at
> You can reach the person managing the list at
>        secondlifescripters-owner at
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of secondlifescripters digest..."
> Today's Topics:
>   1. Turret script - rotation hell (Destiny Niles)
>   2. Re: Turret script - rotation hell (Dale Innis)
>   3. Re: Turret script - rotation hell (Glen Canaday)
>   4. Re: Turret script - rotation hell (DeXTeRz LAb)
> ----------------------------------------------------------------------
> Message: 1
> Date: Thu, 8 Jan 2009 14:41:16 -0800
> From: "Destiny Niles" <techiedavid at>
> Subject: Turret script - rotation hell
> To: "secondlifescripters at"
>        <secondlifescripters at>
> Message-ID:
>        <3a164ef30901081441u6484188k1ba5e15e0758bd06 at>
> Content-Type: text/plain; charset=ISO-8859-1
> I'm trying to write a turret script. I've already have a couple of
> basic gun scripts that I've attempted to modify, but the rotation is
> giving me trouble.
> When I try to fire using the llLookAt(target_pos,1,1) it fires
> straight down. When I disable the llLookAt just to see how the object
> is rezzed it comes out along the Z axis. If I manual rotate it to fire
> the direction I want, it's ok, but I suck at figuring out the rotation
> that I should be using since the llRotFwd is not the right function,
> or at least is not giving me what I want.
> Can anyone help me? Go give me the scriptlet for the section needed.
> points the prim's x
axis towards the target, so that might help.

Alternatively, provides
ways of making llLookAt point different axes at the target, which might be
better since you could just use your existing arguments rather than figure
out new ones for llRotLookAt.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the secondlifescripters mailing list