OnSoundFinished

From Onset Developer Wiki
Revision as of 10:45, 7 July 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OnSoundFinished

Type: Event
Context: Client
Introduced: v1.0

Description

Called when a sound created by CreateSound or CreateSound3D stopped playing.

Syntax

OnSoundFinished(sound)

Parameters

  • sound
    The sound identifier.

Example

AddEvent("OnSoundFinished", function(sound)
	AddPlayerChat("Sound ID " .. sound .. " has finished playing!")
end)

See also