A 'double' OnAnimationEvent involving player and his combat

Post » Sun Feb 03, 2013 6:04 am

Hi,

The following works:

Event OnAnimationEvent(ObjectReference akSource, string asEventName)   if((akSource == PlayerREF) && (asEventName == "xxx")	   PlayerREF do stuff   endifEndEvent

But the following doesn't:

Event OnAnimationEvent(ObjectReference akSource, string asEventName)   if((akSource == PlayerREF) && (asEventName == "xxx")	   if(akSource == PlayerREF.GetCombatTarget()) && (asEventName = "yyy")		   PlayerREF do stuff	   endif   endifEndEvent

As you can see, what I'm trying to do in the second bit of code is to make the player do some stuff but ONLY when 1) the player plays a certain animation AND 2) his combat target also plays a certain, different animation.
The script compiles just fine in the CK but nothing happens in game

Any insights? (and yes, all animation events are properly registered)
User avatar
Far'ed K.G.h.m
 
Posts: 3464
Joined: Sat Jul 14, 2007 11:03 pm

Post » Sun Feb 03, 2013 4:48 am

How are you going about retrieving information from both actors inside a single script?

*EDIT: Clarity.
User avatar
jess hughes
 
Posts: 3382
Joined: Tue Oct 24, 2006 8:10 pm


Return to V - Skyrim