Constants§
- BY_
ANYTHING - Attack closer enemy entities, including entities “built” by player (belts, inserters, chests).
- BY_
DAMAGE - Attack when attacked.
- BY_
ENEMY - Attack closer enemy entities with force.
- NONE
- Perform command even if someone attacks the unit.