Skip to content

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 10

Parameters

ParameterTypeDefaultValues
shapeQueryShapecircle
  • circle
  • rect
typeQueryTypeunit
  • unit
  • building
  • bullet
teamvaluenull
xvalue0
yvalue0
wvalue10
hvalue10

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.