Update README.md

master
CosmosScripter 2021-07-28 19:54:48 -03:00 committed by GitHub
parent cfba7eedfb
commit c619d5e5bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -7,18 +7,18 @@ Incase the sound source is moving, it has a pitch change if moving towards the p
How to use:
sound_distance_play(pos, sound, sound_gain, distance, moving, yaw)
sound_distance_play(pos, sound, sound_gain, distance, moving, yaw, vel, force_sound_speed)
Example:
sound_distance_play(self.object:get_pos(), "example_sound", 1, 16, true, self.object:get_yaw())
sound_distance_play(self.object:get_pos(), "example_sound", 1, 16, true, self.object:get_yaw(), self.object:get_velocity(), false)
---------------------------------------------
See: license.txt for license.
Special thanks to Astrobe, as their feedback improved this mod.
Special thanks to TenPlus1, as the "get_distance" function is from mobs redo.
---------------------------------------------
Depends on: default.
Depends on: default, tnt.
---------------------------------------------
==HOW TO INSTALL THE MOD==