🔊 Sound Module - gumpdev/mars GitHub Wiki
Methods:
Mars.sound.play(Player player, Sound sound, int? volume, int? pitch, boolean? global) -> void
plis the player will be played the soundsoundis the sound that will be playedvolumeis the volume of the sound. Optionalpitchis the pitch of the sound. Optionalglobalwill say if all players around will listen the sound
Plays a sound for a player
Mars.sound.play(Location location, Sound sound, int? volume, int? pitch, boolean? global) -> void
locationis the location will be played the soundsoundis the sound that will be playedvolumeis the volume of the sound. Optionalpitchis the pitch of the sound. Optional
Plays a sound for all players near the location