Jump to content

Recommended Posts

Posted

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?

Posted
  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.

Posted

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
  • Recently Browsing   0 members

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