Table of Contents

Property Equipment

Namespace
GrindFest.BotApi
Assembly
GrindFest.dll

Equipment

Access the hero's equipment to check what items are equipped or equip/unequip items

public EquipmentBehaviour Equipment { get; }

Property Value

EquipmentBehaviour

Remarks

You can access equipped items in several ways:

  • Using equipment slots: Equipment[EquipmentSlot.RightHand]
  • Using weapon shortcut: Equipment.Weapon
  • Using shield shortcut: Equipment.Shield
Check what weapon is equipped:
var weapon = Equipment.Weapon;
if (weapon != null)
{
    Say($"I'm wielding a {weapon.name}");
}
Check what's in the right hand:
var rightHand = Equipment[EquipmentSlot.RightHand];
if (rightHand != null)
{
    Say($"In my right hand I have {rightHand.name}");
}