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
Next revisionBoth sides next revision
play_sound [2020/07/23 11:56] justinplay_sound [2024/01/31 13:23] justin
Line 6: Line 6:
 ====Signature:==== ====Signature:====
 <code python> <code python>
-play_sound(sound_name)+play_sound(sound_name, loop, interval)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
 |sound_name|Name of the sound effect to play.|[[String]]|Yes| |sound_name|Name of the sound effect to play.|[[String]]|Yes|
 +|loop|.|[[Boolean]]|No|
 +|interval|.|[[Number]]|No|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 18: Line 20:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-play_sound("door_open")+play_sound("door_open");
 </code> </code>
 //Results:// Plays the [[sound|sound effect]] named "door_open" one time. //Results:// Plays the [[sound|sound effect]] named "door_open" one time.
play_sound.txt · Last modified: 2024/01/31 22:20 by justin