How to detect if you are swinging with your Right hand or Le

Post » Tue Jun 19, 2012 9:05 am

I have looked at all the commands in both the scripting and in the conditions but cannot find a simple way to do this.

Can anyone think of a hard way to do this? Such as maybe some kind of detect animation ROOT command?

I see several animation related detection commands in the wiki but do not understand them exactly or how to use them or even if they are for actors or not.
User avatar
Samantha Mitchell
 
Posts: 3459
Joined: Mon Nov 13, 2006 8:33 pm

Post » Tue Jun 19, 2012 11:07 am

Is it impossible?
User avatar
Tanya
 
Posts: 3358
Joined: Fri Feb 16, 2007 6:01 am

Post » Tue Jun 19, 2012 7:32 am

If I may ask, what would you use the detection for? I'm curious :-)
User avatar
adam holden
 
Posts: 3339
Joined: Tue Jun 19, 2007 9:34 pm

Post » Tue Jun 19, 2012 10:53 am

http://www.creationkit.com/OnAnimationEvent_-_Form

You should be able to check for left attack, right attack, dual attack, power attacks for each, etc ...
User avatar
sam westover
 
Posts: 3420
Joined: Sun Jun 10, 2007 2:00 pm

Post » Tue Jun 19, 2012 7:14 pm

err... I guess but it makes no sense to me. Does it to you? Could you please give me an example better than what the wiki has :



Function SomeFunction()
RegisterForAnimationEvent(JoeBob, "IdleFurnitureExit") ; Before we can use OnAnimationEvent we must register.
EndFunction

Event OnAnimationEvent(ObjectReference akSource, string asEventName)
if (akSource == self) && (asEventName == "Reset")
Debug.Trace("We got the reset animation graph event from ourselves that we were looking for!")
endIf
endEvent




I would like to detect the ROOT left and right attacks.
Or will I have to list and detect ALL the possible attacks (left and right) in the script? Is that the only way to do it?
User avatar
Catherine Harte
 
Posts: 3379
Joined: Sat Aug 26, 2006 12:58 pm

Post » Tue Jun 19, 2012 11:09 am

So I guess that is a no way to detected the root for left and right attack with this Event OnAnimationEvent ?

Then how about just detecting when the actor starts a weapon attack at all?
User avatar
Miranda Taylor
 
Posts: 3406
Joined: Sat Feb 24, 2007 3:39 pm


Return to V - Skyrim