SlashCo Wiki

SlashCo.RegisterEffect

  SlashCo.RegisterEffect( Effect table, string name )

Description

Registers an effect table so it can be applied to players and looked up by name.
Must be called before item loading finishes; calling it afterwards throws an error.

Arguments

1Effect table

The EFFECT table to register.

2string name

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