meisterhau-ll
    Preparing search index...

    Interface DamageOption

    interface DamageOption {
        customHurtAnimation?: string;
        damage: number;
        damageType?: EntityDamageCause;
        damagingProjectile?: any;
        direction?: AttackDirection;
        execution?: "cutHead";
        knockback?: number;
        parryable?: boolean;
        permeable?: boolean;
        powerful?: boolean;
        shock?: boolean;
        stiffness?: number;
        trace?: boolean;
    }
    Index

    Properties

    customHurtAnimation?: string

    自定义的受击动画

    damage: number
    damageType?: EntityDamageCause
    damagingProjectile?: any
    direction?: AttackDirection

    武器进攻方向 (从右往左进攻方向是左方向) 在受到攻击的一方,水平方向为受到攻击的一侧 垂直方向只能从上往下,所以不需要考虑方向 'middle' 用于刺击

    execution?: "cutHead"

    处决动画id

    knockback?: number

    击退数值

    parryable?: boolean

    可被招架

    permeable?: boolean

    可穿透格挡

    powerful?: boolean

    打断霸体

    shock?: boolean

    是否冲击对手 受到冲击的对象在碰到墙体时会造成短暂眩晕

    stiffness?: number

    僵直时间(毫秒)

    = 500

    trace?: boolean

    追踪正在闪避的目标