PlayAnimation

Post » Mon Jul 15, 2013 12:41 am

Hi there!

Object.PlayAnimation("Anim Name")

How can i get the name of animation of the object?

User avatar
Chloe Mayo
 
Posts: 3404
Joined: Wed Jun 21, 2006 11:59 pm

Post » Mon Jul 15, 2013 4:08 am

I'd like to know this myself. It's not under Anim Events in the Idle Animations, that's something different.

I know offhand that "Open" is for activators like doors, while "SnapClosed" is for Nordic Sarcaphocus tops and "OpenStart" is what makes them pop off.

User avatar
Heather M
 
Posts: 3487
Joined: Mon Aug 27, 2007 5:40 am

Post » Mon Jul 15, 2013 12:18 pm

Maybe someone knows

User avatar
Emily Jeffs
 
Posts: 3335
Joined: Thu Nov 02, 2006 10:27 pm

Post » Mon Jul 15, 2013 1:26 am

It's all in the behavior files for the object. Basically, you need to convert the behavior files for the object to xml using http://skyrim.nexusmods.com/mods/1797/?, then you need to find the 'hkbStateTransitionInfoArray' object which contains information such as the event you need to send to an object to stimulate a state transition which usually results in the object playing an animation. But it's actually way more complicated than that for objects with a large number of states and nested behaviors.

However if you want to find all the animation events they are all contained in the Havok class 'hkbBehaviorGraphStringData' which is at the top of the files but some of those events are listening events (to be registered for with RegisterForAnimationEvent()) and others are trigger events (these are the events you want). You need to be able to understand the behavior files to tell the difference between them but if there aren't to many you can just use trial and error to find the right ones.

By the way, I will be releasing a tool that will make these files MUCH easier to understand in a few days so keep an eye out, it will be very helpful for things like this. Also, fores http://www.gamesas.com/topic/1445372-relz-condensebehavior-v10/?hl=%2Bcondense tool is great for finding these events, that is what I was using to find the events I was looking for.

User avatar
Shiarra Curtis
 
Posts: 3393
Joined: Thu Jan 04, 2007 3:22 pm


Return to V - Skyrim