SlashCo Wiki

SlashCo.AddSlasherClass

  SlashCo.AddSlasherClass( SlasherClass slasherClass, number id = nil )

Description

Registers or overrides a slasher class.

Arguments

1SlasherClass slasherClass
The table containing the slasher class data
2number id = nil

The id to force for setting.
Be careful when using this as you could always override an existing slasher class!

Example

SlashCo.AddSlasherClass({ Name = "Humanoid" }) -- Now like normal, you can do this in a slasher SLASHER.Class = SlashCo.SlasherClass.Humanoid -- Names are double linked, so to get the name of a danger level number you can do print( SlashCo.SlasherClass[ SLASHER.Class ] )