Anyone know how to play an .hkx In game?

Post » Mon Jun 18, 2012 7:53 pm

I REALLY need to know how to do this. If it helps, Debug.SendAnimationEvent() seems like a good bet.
User avatar
Code Affinity
 
Posts: 3325
Joined: Wed Jun 13, 2007 11:11 am

Post » Tue Jun 19, 2012 7:12 am

Idle Property MyAnim Auto ; Property for storing MyAnim !!! MUST link to an Idle that belongs to the actor this is getting called on !!!

Event OnWhatever(Actor akTarget) ; -> Use an Event that will return the actor you want to target or assign a property that links to or you can link to your target.
akTarget.PlayIdle(MyAnim)
EndEvent
User avatar
Javier Borjas
 
Posts: 3392
Joined: Tue Nov 13, 2007 6:34 pm

Post » Tue Jun 19, 2012 3:17 am

What if its not an idle. I need to play the swing animation.
User avatar
Zach Hunter
 
Posts: 3444
Joined: Wed Aug 08, 2007 3:26 pm

Post » Mon Jun 18, 2012 11:25 pm

You will have to find a way to trigger and Action or an Anim Event by script -> I have not tested this very much but the test I did do failed... on the other hand playing a Loose Idle is easy PlayIdle works perfectly for that.
User avatar
Chloe Mayo
 
Posts: 3404
Joined: Wed Jun 21, 2006 11:59 pm

Post » Mon Jun 18, 2012 9:57 pm

You will have to find a way to trigger and Action or an Anim Event by script -> I have not tested this very much but the test I did do failed... on the other hand playing a Loose Idle is easy PlayIdle works perfectly for that.

So as long as it's a loose Anim you can play it?
User avatar
courtnay
 
Posts: 3412
Joined: Sun Nov 05, 2006 8:49 pm

Post » Mon Jun 18, 2012 4:36 pm

So as long as it's a loose Anim you can play it?
Sort of.
Loose anims are the best candidates for PlayIdle function, but still not every single loose anim can be played by a certain actor.
Take LOOSE anims category for Characters for instance. Plenty of loose anims are there, which in theory should be forced by PlayIdle function to play on all human and beast races.
But in fact many of those have some conditions defined (quite possibly by havok behavior) which prevent them from playing on these characters outside of certain situations.
And we have no access to those conditions and properties from CK interface.
User avatar
abi
 
Posts: 3405
Joined: Sat Nov 11, 2006 7:17 am

Post » Mon Jun 18, 2012 10:55 pm

Sort of.
Loose anims are the best candidates for PlayIdle function, but still not every single loose anim can be played by a certain actor.
Take LOOSE anims category for Characters for instance. Plenty of loose anims are there, which in theory should be forced by PlayIdle function to play on all human and beast races.
But in fact many of those have some conditions defined (quite possibly by havok behavior) which prevent them from playing on these characters outside of certain situations.
And we have no access to those conditions and properties from CK interface.

Ok thanks for the help!
User avatar
BEl J
 
Posts: 3397
Joined: Tue Feb 13, 2007 8:12 am

Post » Mon Jun 18, 2012 7:06 pm

Sort of.
Loose anims are the best candidates for PlayIdle function, but still not every single loose anim can be played by a certain actor.
Take LOOSE anims category for Characters for instance. Plenty of loose anims are there, which in theory should be forced by PlayIdle function to play on all human and beast races.
But in fact many of those have some conditions defined (quite possibly by havok behavior) which prevent them from playing on these characters outside of certain situations.
And we have no access to those conditions and properties from CK interface.

Loose Anims can ONLY be called on actors that the anim belongs to so NO you can not call a character anim on a beast or the opposite.
User avatar
Sammygirl
 
Posts: 3378
Joined: Fri Jun 16, 2006 6:15 pm

Post » Tue Jun 19, 2012 2:12 am

Loose Anims can ONLY be called on actors that the anim belongs to so NO you can not call a character anim on a beast or the opposite.
I meant "beast race" not as animal, but as argonian or khajiit. These are characters.
Even in LOOSE section in Idle Animations window for the characters there are some anims that can't be played by other characters.
For instance all loose idle nocturnal anims can't be forced to play on PC or any other NPC even while they have no any conditions set in that window and Nocturnal has race set as a redguard...
User avatar
Darren Chandler
 
Posts: 3361
Joined: Mon Jun 25, 2007 9:03 am

Post » Tue Jun 19, 2012 5:17 am

Need some help.

I made a new animation in characters/.../... under the Idle Manager. I gave it no conditions, and made it so it's a LOOSE. I made an Idle property, and then gave it the value of my newly made Idle. The Idles event was "attackPowerLeftstart". I then made the script which compiled successfully. Casting it ingame though yielded no results. Saiden, any help?
User avatar
Vickey Martinez
 
Posts: 3455
Joined: Thu Apr 19, 2007 5:58 am

Post » Mon Jun 18, 2012 7:16 pm

Well, if we refer here to LOOSE anims we don't mean their type (because there's no such type), but rather the name of the branch under which particular anims reside in Idle Animations window.
Only some of the animations from that branch can be played via PlayIdle. But which anim plays it is decided by the Anim Event, and we have no access to edit its settings from CK.

So you can't change anything here. If you create new entry under LOOSE anims branch and assign a certain Anim Event to it, this won't mean that your anim will be playing because it is in LOOSE branch. No, your anim will be working with Play Idle because of Anim Event it points to.

The point of our discussions is that only the most of Idles under LOOSE branch will produce some results with PlayIdle function. And this is not from the fact that such Idles are there, but becuase they link to certain Anim Events which allow those animations to be played by PlayIdle command without any particular restrictions.
User avatar
Lavender Brown
 
Posts: 3448
Joined: Tue Jul 25, 2006 9:37 am


Return to V - Skyrim