Skip to content

VariantInventory

Nebby edited this page Jul 12, 2021 · 1 revision

Variant Inventory

The Variant inventory is a special inventory of Items that are given to the Variant on spawn.

It's composed of an Array of strings (Item Strings) and Ints (Amount of a particular ItemString.)

Some things to keep in mind:

  • Both arrays MUST be of the same size.
  • Numbers inputed in Counts cannot be negative.
Variable Name Description
Item Strings An Array of ItemStrings, the text itself must match the internal name of the ItemDef
Counts an array of ints, How Many Items to give to the Variant

Here's an example of a correctly formatted VariantInventory:

Clone this wiki locally