How can I differentiate between normal and power attacks in

Post » Wed Jun 20, 2012 9:02 pm

Hey!

Currently I am using animation events to detect when the player attacks, but I cannot tell if the attack is a power attack or not. Is there a way to do this?

Thank you!
User avatar
Mandi Norton
 
Posts: 3451
Joined: Tue Jan 30, 2007 2:43 pm

Post » Thu Jun 21, 2012 12:28 am

Hey!

Currently I am using animation events to detect when the player attacks, but I cannot tell if the attack is a power attack or not. Is there a way to do this?

Thank you!

The Anim Events
AttackStartAttackPowerStartLeftAttackPowerStartRightAttackPowerDirectionalStartAttackPowerStartForawardAttackPowerStartBackwardAttackPowerStartDualWield

Should Help.
User avatar
Christine
 
Posts: 3442
Joined: Thu Dec 14, 2006 12:52 am

Post » Thu Jun 21, 2012 9:41 am

Hmmm, I have tried registering those animation events before, but I could not get them to trigger for the life of me. Currently, "WeaponSwing" picks up ALL types of attacks, including power attacks.
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm

Post » Wed Jun 20, 2012 9:05 pm

Hmmm, I have tried registering those animation events before, but I could not get them to trigger for the life of me. Currently, "WeaponSwing" picks up ALL types of attacks, including power attacks.

Well RegisterForAnimationEvent() has been bugged, and doesn't register every event. Sending animation events are easy. You need to use:
Debug.SendAnimationEvent(Reference, "AttackStart") ;This is just a normal swing.Debug.SendAnimationEvent(Reference, "AttackPowerStartRight") ; A Right power attack.
User avatar
Shannon Lockwood
 
Posts: 3373
Joined: Wed Aug 08, 2007 12:38 pm

Post » Thu Jun 21, 2012 5:19 am

I'm not quite sure I follow. If I send the animation event, doesn't that just make the actor perform that animation? I want to detect when a power attack occurs. I must be missing something here.
User avatar
Harry Leon
 
Posts: 3381
Joined: Tue Jun 12, 2007 3:53 am

Post » Thu Jun 21, 2012 6:41 am

I'm not quite sure I follow. If I send the animation event, doesn't that just make the actor perform that animation? I want to detect when a power attack occurs. I must be missing something here.

To detect an animation use RegisterForAnimationEvent(), and OnAnimationEvent(). When you said trigger, I thought you meant play.
User avatar
Lucy
 
Posts: 3362
Joined: Sun Sep 10, 2006 4:55 am

Post » Thu Jun 21, 2012 1:45 am

Sorry for the confusion. Well, looks like I won't be able to detect power attacks using RegisterForAnimationEvent(), since it is bugged. I guess I'll try conditions on magic effects, but that method seems very unreliable to me the last time I tried. Thank you for your help so far.
User avatar
joeK
 
Posts: 3370
Joined: Tue Jul 10, 2007 10:22 am


Return to V - Skyrim