Advertisement
spncryn

play_sound_3d

Aug 16th, 2019
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /// @func play_sound_3d(sound, pitch, loop)
  2. /// @arg0 id    sound
  3. /// @arg1 bool  shift pitch?
  4. /// @arg2 bool  loops?
  5. if audio_emitter_exists(EMITTER) {
  6.     audio_play_sound_on(EMITTER, argument0, argument2, 1)
  7.     if argument1 {
  8.         var pitch = random_range(0.95, 1.05);
  9.         audio_sound_pitch(argument0, pitch)
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement