Spawn Bullet
A shot with no shooter: the bullet is borrowed from a turret and flies from wherever you say
mediumYou need: What a world processor is, An explosion at a point
Jump0
if
Operation1
=
Spawn Bullet2
resultfromindexxyrotationteamownerdamagevelocity scalelife scaleaim Xaim Y
Operation3
=
End4
@counter0number
deadlinenullnull
shotnullnull
shotsnullnull
bullet shot @duo @graphite 5 5 0 @sharded null -1 1 1 0 0Once a second a duo’s graphite bullet flies out of tile five — although there is no turret on the map at all. The dagger on the right loses health and dies after a dozen shots.
| Field | What is in it |
|---|---|
| first | where to put the created bullet |
| second | whose bullet we borrow: a turret or unit type |
| third | which ammo: an item for an item turret, a weapon index for a unit |
| fourth and fifth | where it flies from, in tiles |
| sixth | the angle in degrees |
| seventh | the team |
| eighth | the owner: the unit or building the shot is credited to |
| ninth | damage; -1 means “as the ammo’s” |
| tenth and eleventh | multipliers for speed and lifetime |
| twelfth and thirteenth | the aim point — for bullets that use one |
A bullet always belongs to somebody
Section titled “A bullet always belongs to somebody”The instruction has no bullet kind of its own: it borrows a ready type from whoever fires such bullets.
- from an item turret — by ammo:
@duoplus@copper,@graphiteor@silicon; - from a power turret — its own shot, with no ammo needed;
- from a unit — by weapon index:
@daggerand0.
Hence the strength of the shot: graphite from a duo hits for 18, copper for 9. The ninth field lets you rewrite the damage without touching anything else.
What it is for
Section titled “What it is for”- weapons the game does not have: traps, shooting walls, delayed mines;
- scripted events: shelling the base “from afar”, a meteor shower;
- spectacle: a victory salute, tracer fire along a road.
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.