|
Eben Slade
If the wind stops, row!
Join date: 17 May 2007
Posts: 146
|
07-11-2007 10:45
What is the best way to script eyes that follow an AV as they move?
I decided I want to start making animals and monsters, and for my first project I want to make a Beholder. I figure it'll be the easiest thing to learn on as it's just a ball with a mouth, an eye, and some eyestalks. However, I also want it to DO stuff.
I know I've seen eyes that follow you at a shop before, but can't remember where or what sim it was on.
Do you script them to scan for AVs, get their positions, and then change the texture? or is there an easier way?
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
07-11-2007 11:30
From: Eben Slade What is the best way to script eyes that follow an AV as they move?
I decided I want to start making animals and monsters, and for my first project I want to make a Beholder. I figure it'll be the easiest thing to learn on as it's just a ball with a mouth, an eye, and some eyestalks. However, I also want it to DO stuff.
I know I've seen eyes that follow you at a shop before, but can't remember where or what sim it was on.
Do you script them to scan for AVs, get their positions, and then change the texture? or is there an easier way? You could make a couple of orbs, with a prim or texture on them where the eyeball is. Then check out these functions: http://rpgstats.com/wiki/index.php?title=LlLookAthttp://rpgstats.com/wiki/index.php?title=LlRotLookAtThey can be used to rotate your eyeball to point at a given target (which can be got with a sensor scan, and converted to a rotation, as in the examples above).
|