DarwinBotsManual
Open the app EspañolES

.aimshoot

Offsets the next shot by an angle from your front, without turning: positive to the right, negative to the left.

Facts

Address
901
Name
.aimshoot
Kind
Command: the bot writes it and the engine reads it and usually consumes it
Group
Shots
Written by
Your DNA.
Read by
The engine, in the actions phase, when a shot of yours goes out: it deflects it by that angle from your front, positive toward the right.
Cleared
The engine, when a shot of yours goes out, even a virus (.mkvirus) or an automatic waste discharge. If you don't shoot, it stays set.
Range
−32000 to 32000; only the remainder of dividing by 1256, which is one full turn, counts.
Mutations
picked as a store target

.aimshoot makes the next shot go out not straight ahead but offset by an angle, measured in the same units as .aimdx (1256 is a full turn). Positive offsets to the right and negative to the left, just like turning with .aimdx. The difference is that your body doesn't turn: you keep facing the same way.

It combines very well with the side eyes. Each eye is offset about 35 (10 degrees) from its neighbor: .eye9, the one farthest to the right, looks about 140 to the right of your front, and .eye1 looks 140 to the left. That way you can shoot at what you see to one side while still facing forward:

cond
*.eye9 0 >
start
140 .aimshoot store
-1 .shoot store
stop

In testing, a bot whose target was only in .eye9 hit it with 140 and not with −140.

The engine reduces it to less than one turn (modulo 1256) and sets it back to 0 when the shot goes out; if you don't shoot, it stays set for the next one. If you also wrote .backshot, .aimshoot wins. The shot keeps the small random deviation that every shot has (see .shoot).