Lua Events/OnAmbientSound

From PZwiki



Event

OnAmbientSound

Description

Triggered when an ambient sound starts.

Parameters

  • String The name of the ambient sound.
  • Float The x coordinate of the ambient sound.
  • Float The y coordinate of the ambient sound.

Examples

local function OnAmbientSound(name, x, y)
	-- Your code here
end

Events.OnAmbientSound.Add(OnAmbientSound)

See also