Skip to main content

InventoryWear

Callable

  • InventoryWear(C: Character, AssetName: string, AssetGroup: AssetGroupName, ItemColor?: string | string[], Difficulty?: number, MemberNumber?: number, Craft?: CraftingItem, Refresh?: boolean): Item

  • Makes the character wear an item on a body area


    Parameters

    • C: Character

      The character that must wear the item

    • AssetName: string

      The name of the asset to wear

    • AssetGroup: AssetGroupName

      The name of the asset group to wear

    • optionalItemColor: string | string[]

      The hex color of the item, can be undefined or "Default"

    • optionalDifficulty: number

      The difficulty, on top of the base asset difficulty, to assign to the item

    • optionalMemberNumber: number

      The member number of the character putting the item on - defaults to -1

    • optionalCraft: CraftingItem

      The crafting properties of the item

    • optionalRefresh: boolean = true

      Whether to refresh the character and push the changes to the server

    Returns Item

    • Thew newly created item or null if the asset does not exist