SoulFire TypeScript SDK 2.10.3
    Preparing search index...

    Type Alias AttackNearestTask

    AttackNearestTask: Message<"soulfire.v1.AttackNearestTask"> & {
        attackRange: number;
        completeWhenNoTarget: boolean;
        maximumAttacks: number;
        maximumTargets: number;
        noTargetTimeoutSeconds: number;
        options?: PathfindOptions;
        radius: number;
        restoreSelectedSlot: boolean;
        selectBestWeapon?: boolean;
        selector?: EntitySelector;
        sprinting: boolean;
        weapon?: ItemSelector;
    }

    Finds the nearest matching entity, attacks it, and optionally keeps hunting.

    Type Declaration

    • attackRange: number

      from field: float attack_range = 4;

    • completeWhenNoTarget: boolean

      Completes immediately when no matching target is observable.

      from field: bool complete_when_no_target = 9;

    • maximumAttacks: number

      Zero allows an unlimited number of attacks.

      from field: uint32 maximum_attacks = 6;

    • maximumTargets: number

      Zero allows an unlimited number of defeated targets.

      from field: uint32 maximum_targets = 7;

    • noTargetTimeoutSeconds: number

      Zero waits indefinitely when no target matches.

      from field: uint32 no_target_timeout_seconds = 8;

    • Optionaloptions?: PathfindOptions

      from field: soulfire.v1.PathfindOptions options = 3;

    • radius: number

      Search radius around the bot. Zero selects the server default.

      from field: float radius = 2;

    • restoreSelectedSlot: boolean

      from field: bool restore_selected_slot = 12;

    • OptionalselectBestWeapon?: boolean

      from field: optional bool select_best_weapon = 10;

    • Optionalselector?: EntitySelector

      from field: soulfire.v1.EntitySelector selector = 1;

    • sprinting: boolean

      from field: bool sprinting = 5;

    • Optionalweapon?: ItemSelector

      from field: optional soulfire.v1.ItemSelector weapon = 11;

    from message soulfire.v1.AttackNearestTask