Hook to play sound
Hook to play sound
Ideally with control over surface, force, position, et cetera. Not using fake entities, not using other hacks. Just game.play_sound(surfaces={...}, forces={...}, position={}) or similar.
![Image](https://i.imgur.com/cM2ZM3K.gif)
Re: Hook to play sound
I've added a way to play sounds for 0.16.
changelog wrote:
- Added LuaSurface::play_sound().
- Added LuaForce::play_sound().
- Added LuaGameScript::play_sound() and is_valid_sound_path().
- Added LuaPlayer::play_sound().
If you want to get ahold of me I'm almost always on Discord.