This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
play_sound [2020/07/23 11:22] – justin | play_sound [2024/01/31 13:39] – justin | ||
---|---|---|---|
Line 6: | Line 6: | ||
====Signature: | ====Signature: | ||
<code python> | <code python> | ||
- | play_sound(sound_name) | + | play_sound(sound_name, loop, interval) |
</ | </ | ||
^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| | ||
+ | |||
+ | ^Return Value^Description^Type^ | ||
+ | |Sound ID|Returns the actual number of [[item|items]] that were given to the player. This could be less than the count supplied to the function, for example if the player' | ||
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
Line 18: | Line 23: | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | play_sound(" | + | play_sound(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
Line 31: | Line 36: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||