|
Chris Widget
Widget Isles @ the Edge!
Join date: 22 Jan 2006
Posts: 67
|
02-05-2006 05:30
Ok, I am making my first script from scratch and I have a few questions. The basis of this script is to make it so someone can move from point A to point B then back to A, repeat... Instead of walking though I have a swiming animation I would like to use. So a few problems pop up immediately.
1. How do I get the avatar into a horizontal position ? 2. If I create a "ball" and have them "sit" on it, how do I stop the sit animation and instead run the swiming animation ?
Here is the basic flow I see in my mind: 1. Avatar clicks on "Swim" on a body of water. 2. Avatar turn horizontal inline with the plane of the water.. 50% under the plane, 50% over. 3. Swim animation starts 4. Avatar swims from point A to point B, turns around and swims back, turns around, repeat. 5. Loop continues until avatar "Stands Up"
Any suggestions ... helpful first steps ? Thanks in advance.
|
|
Siggy Romulus
DILLIGAF
Join date: 22 Sep 2003
Posts: 5,711
|
02-05-2006 06:15
I wrote a device that went one step further and actually lets avatars swim. But it sounds like what you wish to do is a 'poseball that moves' basically. So lets try and answer some questions and get you started. 1. Making the avatar horizontal can be done by turning the object they are sitting on - HOWEVER - an easier was is to let your animation do the work for you. 2. Look through a few open source poseball scripts and you'll see how thats done. Heres the abridged version: get the TRIGGER_ANIMATION permissions from the sitting avatar use llStopAnimation("sit"  to stop the sit animation then start your own. The "sit" anim is a linden built in anim - it will ALWAYS be that when you sit on an object. The moving of the ball back and forth etc. I will leave for you experiment and work out 
_____________________
The Second Life forums are living proof as to why it's illegal for people to have sex with farm animals. From: Jesse Linden I, for one, am highly un-helped by this thread
|
|
Chris Widget
Widget Isles @ the Edge!
Join date: 22 Jan 2006
Posts: 67
|
02-05-2006 07:00
From: Siggy Romulus I wrote a device that went one step further and actually lets avatars swim. Well that sounds like what I would eventually like to end up with. Care to share your script ?  From: Siggy Romulus But it sounds like what you wish to do is a 'poseball that moves' basically. So lets try and answer some questions and get you started. 1. Making the avatar horizontal can be done by turning the object they are sitting on - HOWEVER - an easier was is to let your animation do the work for you. 2. Look through a few open source poseball scripts and you'll see how thats done. Heres the abridged version: get the TRIGGER_ANIMATION permissions from the sitting avatar use llStopAnimation("sit"  to stop the sit animation then start your own. The "sit" anim is a linden built in anim - it will ALWAYS be that when you sit on an object. Thanks I certainly will start looking at those.
|