vmsfallout Posted June 2, 2013 Share 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? Link to comment Share on other sites More sharing options...
stschwarz Posted June 3, 2013 Share Posted June 3, 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?Sorry, but there are no "MovementDirection" related functions in Papyrus. Look here in the CK Wiki. Link to comment Share on other sites More sharing options...
Ghaunadaur Posted June 3, 2013 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts