Function UnitRemoveItemFromSlot

  • If an item exists in the given slot, it is removed from the inventory and dropped at unit's position.

    Returns the handle of dropped item when successful. Returns null on failure (no item, invalid slot/unit).

    Parameters

    • whichUnit: Unit<UnitEventMap>

      Target unit.

    • itemSlot: number

      Slot number (zero-based, i.e. 0 to 5).

    Returns Item

    Note

    See UnitRemoveItem to drop an item by handle.

Generated using TypeDoc