
These forums are CLOSED. Please visit the new forums HERE
walk/hold |
|
|
Belle Loll
Registered User
Join date: 7 Dec 2006
Posts: 260
|
09-24-2008 02:42
I'm looking for a script where someone can hold a bouquet of flowers in both hands and walk at the same time? I have a few different holding scripts where you can hold the flowers with both hands but when you start walking your hands move down to your side. Can anyone lead me in the right direction? Thank you for any responses
![]() |
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
09-24-2008 03:47
It's not actually a scripting thing, it's a question of animation priority, and of which joints are animated. Broadly stated, what's wanted is an animation of just the joints that hold the flowers, at a higher priority than any other animations (such as walking) that also try to animate those joints.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
09-24-2008 06:44
Also you'll want to LOOP the animation(s). Otherwise they'll play for an instant and then the normal walking animations will take over (there's nothing left to be higher priority than the walking animations since your animation is done playing).
|
|
Belle Loll
Registered User
Join date: 7 Dec 2006
Posts: 260
|
09-24-2008 07:09
It's not actually a scripting thing, it's a question of animation priority, and of which joints are animated. Broadly stated, what's wanted is an animation of just the joints that hold the flowers, at a higher priority than any other animations (such as walking) that also try to animate those joints. Wow..I actually understood that I do have a script now that works with an animation that does the actual holding with both hands. So I think you're saying I need another animation that does the walk and make sure the 'holding" animation has a higher priority. Would I do this in the script that loops the animations? I can tell you right now that I have no experience with animations beyond putting them in scripts...I have never created one nor do I know exactly how they work. |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
09-24-2008 07:20
Wow..I actually understood that I do have a script now that works with an animation that does the actual holding with both hands. So I think you're saying I need another animation that does the walk and make sure the 'holding" animation has a higher priority. Would I do this in the script that loops the animations? I can tell you right now that I have no experience with animations beyond putting them in scripts...I have never created one nor do I know exactly how they work.You'll need a new animation uploaded. That's when the priority and looping of the animation is determined, not when you play it from the script (unfortunately). They really should have handled animations more like sound. Imagine what a pain it would be if you had to specify when you uploaded a sound (and later remember!) what volume it would be played at and whether or not it looped. ![]() Unless you really want it, you shouldn't need a walking animation other than the default ones; you just need to make sure the priority of the holding animation is high enough. For the priorities of the built-in animations, see: http://www.lslwiki.net/lslwiki/wakka.php?wakka=animation |