Jump to content

Papyrus function for movement direction?


vmsfallout

Recommended Posts

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...