Class Hero
public static class Hero
- Inheritance
-
objectHero
Properties
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
- FindNearestEnemy(float)
Returns a list of nearby enemies
- FindNearestItem(string, string, string, float)
Finds the nearest item on the ground that matches the specified name criteria.
- FollowCursorAndAttack()
Makes your hero follow your mouse cursor and attack nearest enemies in a way
- FollowFlags(Color)
Follow the flags of a certain color
- PickUp(ItemBehaviour)
Pick up an item, moving to it if necessary
- RunAroundInArea()
Makes the hero run around randomly within the current area.
- RunAroundInAreaAndAttack()
Makes your hero run around and attack enemies in the area
- SayTo(string, Transform)
Say something