Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# PlaySoundSpecification - Runtime Docs

## PlaySoundSpecification :: table

#### Table fields

path | :: SoundPath | The sound to play.
The sound to play.
position | :: MapPosition? | Where the sound should be played. If not given, it's played globally on the player's controller's surface.
Where the sound should be played. If not given, it's played globally on the player's controller's surface.
volume_modifier | :: double? | The volume of the sound to play. Must be between 0 and 1 inclusive.
The volume of the sound to play. Must be between 0 and 1 inclusive.
override_sound_type | :: SoundType? | The volume mixer to play the sound through. Defaults to the default mixer for the given sound type.
The volume mixer to play the sound through. Defaults to the default mixer for the given sound type.

Concept used in

- LuaForce::play_sound()
- LuaGameScript::play_sound()
- LuaPlayer::play_sound()
- LuaSurface::play_sound()