SlashCo Wiki

SlashCo.RegisterItem

  SlashCo.RegisterItem( Item table, string name )

Description

Registers an item table so it can be equipped, dropped and looked up by name.
Must be called before item loading finishes; calling it afterwards throws an error.

Arguments

1Item table

The ITEM table to register.

2string name

Name to register the item under. Defaults to table.Name.