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)