query
Worldworld processor only
Queries units/buildings in a specified area. Results are outputted into @queries. Results can be read from @queries using the Read instruction and an index. Length of @queries can be sensed using @size as a parameter.
Syntax
query circle unit null 0 0 10 10Parameters
| Parameter | Type | Default | Values |
|---|---|---|---|
shape | QueryShape | circle |
|
type | QueryType | unit |
|
team | value | null | — |
x | value | 0 | — |
y | value | 0 | — |
w | value | 10 | — |
h | value | 10 | — |
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.