Class OnLoadSoundBankEvent

java.lang.Object
io.pzstorm.storm.event.OnLoadSoundBankEvent
All Implemented Interfaces:
LuaEvent, ZomboidEvent

public class OnLoadSoundBankEvent extends Object implements LuaEvent
This event triggers when a sound bank is being loaded. Users can use this event to change the path of sound banks being loaded, effectively replacing vanilla with their own custom sound banks.
  • Field Details

    • soundBankPath

      public final StringBuffer soundBankPath
      StringBuffer containing the string that denotes the path to the sound bank being loaded. In order to replace the given path with a custom path you can do the following:
       String customPath = "path/to/custom/sound/bank";
       soundBankPath.delete(0, soundBankPath.length()).append(customPath);
       
  • Constructor Details

    • OnLoadSoundBankEvent

      public OnLoadSoundBankEvent(StringBuffer soundBankPath)