User Tools

Site Tools


play_sound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
play_sound [2024/01/31 21:50] justinplay_sound [2024/01/31 22:20] (current) justin
Line 2: Line 2:
 ---- ----
  
-Plays the specified [[sound|sound effect]] once.+Plays the specified [[sound|sound effect]]. If the optional loop argument is set to true, the [[sound|sound effect]] will continue to play at the given interval of time (e.g. once per second) until stopped via the [[Stop Sound]] function.
  
 ====Signature:==== ====Signature:====
Line 12: Line 12:
 |sound_name|Name of the [[sound|sound effect]] to play.|[[String]]|Yes| |sound_name|Name of the [[sound|sound effect]] to play.|[[String]]|Yes|
 |loop|Whether or not the [[sound|sound effect]] will loop or play only once. When true, it will loop until stopped via the [[Stop Sound]] function.|[[Boolean]]|No| |loop|Whether or not the [[sound|sound effect]] will loop or play only once. When true, it will loop until stopped via the [[Stop Sound]] function.|[[Boolean]]|No|
-|interval|Interval of time to wait between each playing of the [[sound|sound effect]] (only applicable when the "loopargument is true).|[[Number]]|No|+|interval|Interval of time in seconds to wait between each playing of the [[sound|sound effect]] (only applicable when the loop argument is true).|[[Number]]|No|
  
 ^Return Value^Description^Type^ ^Return Value^Description^Type^
play_sound.1706766610.txt.gz · Last modified: 2024/01/31 21:50 by justin