Page 1 of 1
Hook to play sound
Posted: Wed Jul 19, 2017 10:56 pm
by Reika
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.
Re: Hook to play sound
Posted: Tue Oct 24, 2017 6:04 pm
by Rseding91
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().