Table of Contents

Class AutomaticHero

Namespace
_GrindFest.Scripts.BotApi
Assembly
GrindFest.dll

Base class for all bots

public abstract class AutomaticHero : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
AutomaticHero
Derived

Fields

AttackTarget
PickUpDistance

Properties

CurrentArea
Health
IsBotting
IsSelected
MaxHealth

Methods

AttackNearestEnemy()

Attack the nearest enemy

DrinkHealthPotion()

Start drinking a health potion if the hero has one

FindClosestItem(string, string, string)
Follow(GameObject)
FollowCursor()

Makes your hero follow the mouse cursor

FollowCursorAndAttack()
FollowFlags(Color)

Follow the flags of a certain color

GetFlagsByColor(Color)
GetNearestEnemy(float)

Returns a list of nearby enemies

GetRandomPointInArea()
HasHealthPotion()
Idle()

Called once every second

OnHear(SpeechBehaviour, string)
OpenInventory()
PickUp(ItemBehaviour)
ResetFlags()
RunAroundInArea()
RunAway()
RunInDirection(Direction)
RunTo(Vector3)
Say(string)

Say something