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 revision Previous revision
Next revision
Previous revision
play_sound [2017/04/26 15:05]
justin
play_sound [2018/03/16 09:46]
justin
Line 4: Line 4:
 Plays the specified sound effect once. Plays the specified sound effect once.
  
 +====Signature:​====
 <code python> <code python>
 play_sound(sound_name) play_sound(sound_name)
Line 12: Line 13:
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-This function plays the sound at the game's current sound effect volume. For positional/​spatial sounds, you can attach a sound effect to a model'​s animation in order for the sound level to adjust based on the distance from the player. ​+This function plays the sound at the game's current sound effect volume. For positional/​spatial sounds, you can attach a sound effect to a model'​s animation in order for the sound level to adjust based on the distance from the player. The [[Sound FX Generator]] can be used to generate some basic 8-bit style sound effects.
 </​WRAP>​ </​WRAP>​
  
play_sound.txt ยท Last modified: 2018/03/16 09:46 by justin