Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.0
    Preparing search index...

    Function canInterrupt

    • Check if an animation can interrupt another based on priority

      Parameters

      • current: AnimationState

        Current animation state

      • requested: AnimationState

        Requested animation state

      • currentInterruptible: boolean

        Whether current animation is interruptible

      Returns boolean

      Whether the requested animation can interrupt the current one

      // Hit can interrupt attack
      canInterrupt("attack", "hit", true); // true

      // Attack cannot interrupt hit
      canInterrupt("hit", "attack", true); // false

      // Nothing can interrupt non-interruptible animations
      canInterrupt("attack", "hit", false); // false (unless same priority)

      중단가능여부확인