rednode API - v0.80.1
    Preparing search index...

    Interface QuickhackTarget

    The enemy a quickhack function is about, as it was when the game asked.

    interface QuickhackTarget {
        health: number;
        healthPercent: number;
        id: string;
        isAndroid: boolean;
        isBoss: boolean;
        isCivilian: boolean;
        isDrone: boolean;
        isElite: boolean;
        isHuman: boolean;
        isMechanical: boolean;
        level: number;
        addEffect(effect: string): Promise<boolean>;
        damage(amount: number): Promise<boolean>;
    }
    Index
    health: number

    Its health in points.

    healthPercent: number

    Its health in percent, 0 to 100.

    id: string

    The enemy's entity ID hash, as a string (the same as GameEvent.entityId).

    isAndroid: boolean
    isBoss: boolean
    isCivilian: boolean
    isDrone: boolean
    isElite: boolean
    isHuman: boolean
    isMechanical: boolean
    level: number

    Its level.

    • Puts a status effect on it with V as the one who applied it, such as "BaseStatusEffect.Burning". Resolves false when the enemy is gone.

      Parameters

      • effect: string

      Returns Promise<boolean>

    • Lowers its health by amount points, with V as the one who did it. No damage type: for typed damage, addEffect with a damage status effect, as the game's own hacks do. Whether a kill this way counts as V's is unverified. Resolves false when the enemy is gone.

      Parameters

      • amount: number

      Returns Promise<boolean>