Lua Events/OnThunderEvent

From PZwiki



Event

OnThunderEvent

Description

Triggered when a thunderstorm is about to start.

Parameters

  • Integer The x coordinate where the thunder event is going to take place.
  • Integer The y coordinate where the thunder event is going to take place.
  • Boolean Whether the thunder event will strike.
  • Boolean Whether the thunder event will emit light.
  • Boolean Whether the thunder event will rumble.

Examples

local function OnThunderEvent(x, y, strike, light, rumble)
	-- Your code here
end

Events.OnThunderEvent.Add(OnThunderEvent)

See also