sitting script, how to start?
|
|
Marcel Flatley
Sampireun Design
Join date: 29 Jul 2007
Posts: 2,032
|
10-14-2007 14:56
Well now I built 3 types of beach chairs to place on my parcels (and maybe later sell them, now i want to start on a script to make people able to sit/lie down on these things. Since i want to learn everything, i decided to write the scripts myself but i do not really know where to start  Is there a way to script this myself, or would i need some animation program for it? How to manipulate an avatars limbs for example, i am confused  Thanks in advance, Marcel
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
10-14-2007 15:07
Well you can use a script to create the sit target but it sounds more like you are wanting animations. Something along the lines of them laying on the lounger and they roll over every now and then and look like they are tanning?
If it is the second, then the animation tips forum would be the place to start. They can point you in the direction of different programs including some open source/free ones. And point you to some tutorials to get started. Good Luck!
_____________________
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
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
10-14-2007 15:35
There are lots of simple scripts taht do the simple version of this. Keep searching these forums and the wikis and you will find them. Also, there is some open source code called MLP that can handle several configurations of one or two poses or animations each, and uses a menu to switch among them.
Visit Yadnis, or some place similar, and look through the free script libraries.
IM me in world and I cangive you an MLP.
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
10-14-2007 15:55
Here's the script for setting the position of the avatar when they sit... default { state_entry() { llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); // needed for llAvatarOnSitTarget to work // Note that if both the vector and the rotation are zero, // the SitTarget is removed instead of set and the following will not work: } changed(integer change) { // something changed if (change & CHANGED_LINK) { // and it was a link change llSleep(0.5); // llUnSit works better with this delay if (llAvatarOnSitTarget() != NULL_KEY) { // somebody is sitting on me llSay(0, "Get off!"  ; llUnSit(llAvatarOnSitTarget()); // unsit him } } } } ... and here's the location do download a nice, free program to create animations. http://www.qavimator.org/hope that helps
|
|
Marcel Flatley
Sampireun Design
Join date: 29 Jul 2007
Posts: 2,032
|
10-15-2007 01:04
Well thanks a lot for the input! Won't be untill this evening before i can test some stuff (european here). As far as I think I have to work now: - Through the animation program i can create a nice pose for the AV which looks nice on my lounger (thank you for that link, I took a quick look and it seems great stuff!). - Combine that with the sitting script, tuning the parameters to place the AV exactly on the right spot. - Use MLP when i want multiple poses in 1 chair (Lee I'll IM you for that, thanks!). I will not yet use the real animation stuff like rolling over and so for the time being, since its hard enough to make a start already with this. Then again i think that scripted furniture is nice stuff to make  Thanks again, Marcel
|
|
Marcel Flatley
Sampireun Design
Join date: 29 Jul 2007
Posts: 2,032
|
10-15-2007 12:53
Well i came quite far in fact, with the suggested animation program i managed to make a pose, which I implemented into the chair by a calling script. The only nuisance now is that the avatar follows the mouse movement, which causes one of the arms disappear into the chair when the mouse moves in that direction. Anyone of you have experience in that or do I need to ask the animator forum? Well I'll ask a separate question there anyway 
|
|
Marcel Flatley
Sampireun Design
Join date: 29 Jul 2007
Posts: 2,032
|
10-15-2007 13:38
Don't bother to answer the latter, a quick search in the animation forum explained how things work. I owe you guys bigtime as I managed my goal 
|
|
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
|
10-15-2007 13:48
Consider this easy sit target setter, free at SLX: 
|