Completes immediately when no matching target is observable.
Zero allows an unlimited number of attacks.
Zero allows an unlimited number of defeated targets.
Zero waits indefinitely when no target matches.
Optionaloptions?: PathfindOptionsSearch radius around the bot. Zero selects the server default.
OptionalselectBestWeapon?: booleanOptionalselector?: EntitySelectorOptionalweapon?: ItemSelector
Finds the nearest matching entity, attacks it, and optionally keeps hunting.