OnSoundFinished: Difference between revisions
From Onset Developer Wiki
Added related functions & an example, as well as a note that it's currently non-functional. |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Event|Client|1.0}} | {{Info|Event|Client|1.0}} | ||
{{FuncDescription|Called when a sound created by [[CreateSound]] or [[CreateSound3D]] stopped playing | {{FuncDescription|Called when a sound created by [[CreateSound]] or [[CreateSound3D]] stopped playing.}} | ||
{{FuncSyntax|OnSoundFinished(sound)}} | {{FuncSyntax|OnSoundFinished(sound)}} | ||
Line 19: | Line 17: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{SoundEvents}} | {{SoundEvents}} | ||
Latest revision as of 10:45, 7 July 2020
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)