Skip to content

playsound

Worldworld processor onlythe sandbox does not run it

Plays a sound. Volume and pan can be a global value, or calculated based on position.

Syntax

playsound 0 @sfx-shoot 1 1 0 @thisx @thisy true

Parameters

ParameterTypeDefaultValues
positionalboolean—
idvalue@sfx-shoot—
volumevalue1—
pitchvalue1—
panvalue0—
xvalue@thisx—
yvalue@thisy—
limitvaluetrue—

Data taken from Mindustry v160.4 by the project generators.

Unofficial fan project, not affiliated with Anuke. Mindustry sprites, fonts and translations © Anuke, used under GPL-3.0; Fira Code under OFL-1.1. Site code is GPL-3.0.