Lua Events/OnWorldSound

From PZwiki



Event

OnWorldSound

Description

Triggered when a sound is being played.

Parameters

  • Integer The x coordinate of the sound.
  • Integer The y coordinate of the sound.
  • Integer The z coordinate of the sound.
  • Integer The radius of the sound.
  • Integer The volume of the sound.
  • IsoObject The object that triggered the sound.

Examples

local function OnWorldSound(x, y, z, radius, volume, source)
	-- Your code here
end

Events.OnWorldSound.Add(OnWorldSound)

See also

No related event.