OnSoundFinished: Difference between revisions

From Onset Developer Wiki
Chloe (talk | contribs)
Added related functions & an example, as well as a note that it's currently non-functional.
Chloe (talk | contribs)
m Removed the sound functions tag, keeping the sound events tag.
Line 19: Line 19:
{{RelatedFunctions}}
{{RelatedFunctions}}
{{SoundEvents}}
{{SoundEvents}}
{{SoundFunctions}}

Revision as of 22:37, 15 January 2020

OnSoundFinished

Type: Event
Context: Client
Introduced: v1.0

Description

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

As per 1.0.2, this event is not working properly and is being investigated.

Syntax

OnSoundFinished(sound)

Parameters

  • sound
    The sound identifier.

Example

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

See also