vmsfallout Posted June 2, 2013 Posted June 2, 2013 I am trying to use movement direction with an 'If' function, as in: Event OnAnimationEvent(ObjectReference akSource, string asEventName) if (akSource == PlayerRef) && (asEventName == "attackWinStart") if PlayerRef.getMovementDirection() == 3 but getMovementDirection is not compiling. I tried isMoving, and other variations with combos of get, has, is, move, moving, direction. No luck so far. Any idea on what it might be?
stschwarz Posted June 3, 2013 Posted June 3, 2013 On 6/2/2013 at 8:51 PM, vmsfallout said: I am trying to use movement direction with an 'If' function, as in: Event OnAnimationEvent(ObjectReference akSource, string asEventName) if (akSource == PlayerRef) && (asEventName == "attackWinStart") if PlayerRef.getMovementDirection() == 3 but getMovementDirection is not compiling. I tried isMoving, and other variations with combos of get, has, is, move, moving, direction. No luck so far. Any idea on what it might be?Sorry, but there are no "MovementDirection" related functions in Papyrus. Look here in the CK Wiki.
Ghaunadaur Posted June 3, 2013 Posted June 3, 2013 Condition functions can't be used in papyrus. Possible solution, retrieve the key for backward moving and check with IsKeyPressed. SKSE needed. Event OnAnimationEvent(ObjectReference akSource, string asEventName) if (akSource == PlayerRef) && (asEventName == "attackWinStart") int KeyBackward = Input.GetMappedKey("Back") if Input.IsKeyPressed(KeyBackward) ;do stuff endif endif EndEvent
Recommended Posts