Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// @func play_sound_3d(sound, pitch, loop)
- /// @arg0 id sound
- /// @arg1 bool shift pitch?
- /// @arg2 bool loops?
- if audio_emitter_exists(EMITTER) {
- audio_play_sound_on(EMITTER, argument0, argument2, 1)
- if argument1 {
- var pitch = random_range(0.95, 1.05);
- audio_sound_pitch(argument0, pitch)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement