DarwinBotsManual
Open the app EspañolES

.shdn

The type of the shot that hit you from behind in the previous cycle; 0 if nothing hit you from behind.

Facts

Address
211
Name
.shdn
Kind
Sense: the engine writes it for the DNA to read
Group
Shots
Written by
The engine, in the shots phase, when one hits you from behind: its type, as in .shflav. You read it in the next cycle.
Cleared
The engine, every cycle, when the senses are cleared.
Range
−8 to −1 depending on the type, or 1 to 1000 if it was a memory shot; 0 if nothing hit you from behind.
Mutations
picked as a read (*)

.shdn holds the type of the shot (the same number as .shflav) when that shot hit you from behind, within a quarter turn centered on your back. If it hit you from another side, or nothing hit you, it is 0. It is the counterpart of .shup; the ones for the sides are .shdx and .shsx.

It arrives one cycle late and lasts one cycle. Against an attack from behind there are two typical responses: turning around to fight, or returning fire without stopping, with .backshot.

' I'm being hit from behind: half turn
cond
*.shdn 0 !=
start
628 .aimdx store
stop

For the exact angle, instead of the side, there is .shang.