For the complete documentation index, see llms.txt. This page is also available as Markdown.

πŸŒͺ️DisasterService

Service for starting disaster events.

Example usage:

Events.Enchant(function(event)
    -- Start a Tornado disaster if someone receives the Wind enchant
    if (event.enchant == EnchantType.WIND_3) then
         DisasterService.startDisaster(DisasterType.TORNADO, 3 * 60)
    end
end)

Functions

startDisaster(disasterType: DisasterType, duration: number)

Starts a Disaster event that lasts for an optional duration (in seconds).

Last updated