DeadZone Community Packages
    Preparing search index...

    Function stringToIntArray

    • Converts a string input into an array of numbers seperated by a comma, if possible.

      This can be item IDs, item names or a mixture.

      Parameters

      • input: string

        the string input to convert

      • OptionalglobalSearch: boolean

        Optional, if true, will search for items in the global database not just in inventory

      Returns number[]

      An array of numbers parsed from the string

      Returns an empty array if it fails