Event OnKeyDown(int KeyCode) ;(略) ;If KeyCode == DodgeHotkey.GetValue() && DodgeInputType.GetValue() != 0 ;Keycode is dodge and sneak controls is off If KeyCode == DodgeHotkey.GetValue() if PlayerRef.GetAnimationVariableBool("IsStaggering") debug.SendAnimationEvent(PlayerRef, "DodgeRoll") return endif if PlayerRef.IsOnMount() return endif if PlayerRef.GetAnimationVariableBool("IsAttacking") debug.SendAnimationEvent(PlayerRef, "DodgeRoll") return endif if PlayerRef.GetSleepState() != 0 || PlayerRef.GetActorValue("Health") <= 0.0 return endif if PlayerRef.IsWeaponDrawn() return endif debug.SendAnimationEvent(PlayerRef, "DodgeRoll") return EndIf ;(略) EndEvent