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 trueParameters
| Parameter | Type | Default | Values |
|---|---|---|---|
positional | boolean | | — |
id | value | @sfx-shoot | — |
volume | value | 1 | — |
pitch | value | 1 | — |
pan | value | 0 | — |
x | value | @thisx | — |
y | value | @thisy | — |
limit | value | true | — |
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.