Hook to play sound

Post Reply
User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 582
Joined: Tue May 19, 2015 1:56 am
Contact:

Hook to play sound

Post 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.
Image

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Hook to play sound

Post 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().
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”