Class AutomaticHero
- Namespace
- _GrindFest.Scripts.BotApi
- Assembly
- GrindFest.dll
Base class for all bots
public abstract class AutomaticHero : MonoBehaviour
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourAutomaticHero
- Derived
Fields
Properties
- Inventory
Gets all the items in the hero's inventory
Methods
- AttackNearestEnemy(int)
Attack the nearest enemy
- DrinkHealthPotion()
Start drinking a health potion if the hero has one
- Equip(ItemBehaviour)
Equip an item, picking it up if necessary
- FindItemInInventory(string, bool)
Finds an item in the inventory by name
- FindItemsOnGround(string, string, string, float)
Finds items on the ground by name. If no name is provided, all items are returned
- FindNearestEnemy(float)
Returns a list of nearby enemies
- FollowCursor()
Makes your hero follow the mouse cursor
- FollowCursorAndAttack()
Makes your hero follow your mouse cursor and attack nearest enemies in a way
- FollowFlags(Color)
Follow the flags of a certain color
- Idle()
Called once every second
- PickUp(ItemBehaviour)
Pick up an item, moving to it if necessary
- RunAroundInArea()
Makes the hero run around randomly within the current area.
- Say(string, Transform)
Say something
- Think(string, ValidateResultDelegate<string>, Func<string, string>)
Uses LLM to think