|
Sulayman Rumey
Registered User
Join date: 10 Oct 2006
Posts: 3
|
09-06-2007 13:56
My multi-animation script seems to work fine with the following weirdnesses:
1) It won't set the PERMISSION_TRIGGER_ANIMATION until the AV "sits" on the object.
2) Once the AV has stood up from the object, if I click on the object and set a pose it still animates the AV - even though they are not "sitting" on the object anymore.
Any ideas?
Sulayman Rumey
|
|
Animations Pfeffer
Registered User
Join date: 29 Jul 2007
Posts: 99
|
09-06-2007 14:03
As far as i understand the "sit" is used only to trigger the start of the animation, but just for that.
I mean its not needed for anything else with animations.
But as sit and unseat events are easy to pick, its generally used to start/stop animations, but more than that are not really indispensable to start or stop animations.
In your case, you need to use the unseat event to stop animation, otherwise it will continue.
|
|
Animations Pfeffer
Registered User
Join date: 29 Jul 2007
Posts: 99
|
09-06-2007 14:06
Instead of sit/unsit you can use, per example, menues to start and stop animations.
|
|
Sulayman Rumey
Registered User
Join date: 10 Oct 2006
Posts: 3
|
09-06-2007 14:30
When the AV "Stands" the animation stops. However, if the object is touched and another animation chosen from the menu, it will animate the AV even if they are standing many meters away from the object.
Will the unseat command fix such a thing? If so, I'll have to find how to use it. I've never looked for it before.
|
|
Animations Pfeffer
Registered User
Join date: 29 Jul 2007
Posts: 99
|
09-06-2007 15:59
You can check if the avatar is sit before run an animation
if (llAvatarOnSitTarget() != NULL_KEY){ //Run your animation }
By this way you avoid to trigger one animation if the avatar is not sit.
|
|
Animations Pfeffer
Registered User
Join date: 29 Jul 2007
Posts: 99
|
09-06-2007 16:04
As i said before, palyin an animation is not neccesary associated with sitting. Its not neccesary that the avatar seats.
Its used because 2 reasons:
1.- Because its the easiest way to let the avatar trigger when want to start and stop the animation 2.- Because the PERMISSION_TRIGGER_ANIMATION permission is automatically granted when sitting.
But more than that there is no need to have the avatar seated to animate it. So if your code dont do the appropiate checks, its possible that avatar still being animated even after unseat.
|