Collapse Sidebar


Plays the Sound. Sets Sound/TimePosition to the last value set by a Script (or 0 if it has not been set), and then sets Sound/Playing to true.

The impact of the different Sound functions on Sound/Playing and Sound/TimePosition are shown below.

Function Sound.Playing Sound.TimePosition
Sound:Play() True Last value set in Lua (default 0)
Sound:Pause() False -
Sound:Resume() True -
Sound:Stop() False 0


Return Type Summary

Code Samples

Sound Functions

This sample gives a simple demonstration of what each of the Sound functions (Sound.Play, Sound.Stop, Sound.Pause and Sound.Resume) do to Sound.Playing and Sound.TimePosition.