SHARE
TWEET

play_sound_3d

spncryn Aug 16th, 2019 (edited) 90 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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top