09-20-2008 08:52
Hi all, I'm pretty new at scripting, but I'm trying to think of ways to improve a tiny animation protector.

I have a great no-mod script written by someone else which works as an animation protector for tiny avatars using a tiny ao, preventing them from becoming deformed by animations designed for full sized avatars.

I can't see the code but it works, as far as I can tell, by playing an animation to recrush the avatar's torso etc after the human animation starts. I'm not sure what priority of animation would have this behaviour, but it leaves the rest of the body free to move and often works well.

However, for some human animations to work, I need to turn off the tiny AO. From the script's documentation it would seem that this happens in the case of low priority animations.

Would it be possible to add another script that would turn the original tiny ao off when a new animation is triggered?

Some specific questions -
Is it possible to find out using a script or even just in inventory what priority an animation is?
How would I detect when a new animation has just been played ?
I understand getAnimationList can find out what animations are currently playing but I'm wanting to know how to trigger something happening when a new animation is played?
How can I tell the difference between animations played by an AO and other animations?
Since I could technically mod the franimation script- would it be possible to make it so that it turns off when another non-ao animation starts up?