Skip to main content

InventoryIsItemInList

Callable


  • Prerequisite utility function that returns TRUE if the given character has an item equipped in the provided group whose name matches one of the names in the provided list.


    Parameters

    • C: Character

      The character for whom to check equipped items

    • ItemGroup: AssetGroupName

      The name of the item group to check

    • ItemList: readonly string[]

      A list of item names to check against

    Returns boolean

    • TRUE if the character has an item from the item list equipped in the named slot, FALSE otherwise