Update README.md
parent
cfba7eedfb
commit
c619d5e5bb
|
@ -7,18 +7,18 @@ Incase the sound source is moving, it has a pitch change if moving towards the p
|
||||||
|
|
||||||
How to use:
|
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:
|
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.
|
See: license.txt for license.
|
||||||
|
|
||||||
Special thanks to Astrobe, as their feedback improved this mod.
|
Special thanks to Astrobe, as their feedback improved this mod.
|
||||||
Special thanks to TenPlus1, as the "get_distance" function is from mobs redo.
|
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==
|
==HOW TO INSTALL THE MOD==
|
||||||
|
|
Loading…
Reference in New Issue