> ## Documentation Index
> Fetch the complete documentation index at: https://cambridgebattlecode-mintlify-api-updates-1773792477.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Turrets

> Defensive and offensive combat units — gunner, sentinel, breach, and launcher.

Every turret **except the launcher** faces in one of **8 directions**. Ammo must be fed to turrets via conveyors, from any direction except the direction the turret is facing. Diagonal turrets can be fed from all four sides.

Ammo-based turrets can hold up to one stack of one resource type and only accept incoming resources when completely empty.

<Info>
  If a tile containing both a building and a unit is hit, **both** take full damage.
</Info>

## Gunner

<img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/entities/gunner.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=079bcc245321b9281b45cb2665d31481" alt="Gunner" style={{ width: 64, float: "right", marginLeft: 16 }} width="512" height="512" data-path="images/entities/gunner.png" />

Has a vision radius of √13. Can only target the **closest non-empty tile** in the direction it is facing. Using refined axionite as ammo deals double damage.

| Property      | Value                         |
| ------------- | ----------------------------- |
| HP            | 40                            |
| Base cost     | 10 Ti                         |
| Scaling       | 10%                           |
| Damage        | 10 (20 with refined axionite) |
| Reload        | 1 round                       |
| Ammo per shot | 2                             |
| Vision r²     | 13                            |
| Attack r²     | 13 (same as vision)           |

<Tabs>
  <Tab title="Cardinal">
    <img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/ranges/gunner-cardinal.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=f0e6c5607a0d5654eba19877ef53edbc" alt="Gunner range — cardinal direction" width="1175" height="1182" data-path="images/ranges/gunner-cardinal.png" />
  </Tab>

  <Tab title="Diagonal">
    <img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/ranges/gunner-diagonal.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=19f5508bbf4ad5fa9704501449950b3f" alt="Gunner range — diagonal direction" width="1175" height="1182" data-path="images/ranges/gunner-diagonal.png" />
  </Tab>
</Tabs>

## Sentinel

<img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/entities/sentinel.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=14c5ed1e8945855173491e3a8e34f678" alt="Sentinel" style={{ width: 64, float: "right", marginLeft: 16 }} width="512" height="512" data-path="images/entities/sentinel.png" />

High range, low damage support turret. Can hit all tiles within **1 king move** (Chebyshev distance) of the straight line in its facing direction, within vision range.

Using refined axionite instead of titanium as ammo adds **+3 to the action and move cooldown** of any unit directly hit — acting as a stun.

| Property      | Value               |
| ------------- | ------------------- |
| HP            | 30                  |
| Base cost     | 15 Ti               |
| Scaling       | 10%                 |
| Damage        | 20                  |
| Reload        | 4 rounds            |
| Ammo per shot | 10                  |
| Vision r²     | 32                  |
| Attack r²     | 32 (same as vision) |

<Tabs>
  <Tab title="Cardinal">
    <img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/ranges/sentinel-cardinal.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=8a8876bce1f7112e40cd777322f9c635" alt="Sentinel range — cardinal direction" width="1428" height="1325" data-path="images/ranges/sentinel-cardinal.png" />
  </Tab>

  <Tab title="Diagonal">
    <img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/ranges/sentinel-diagonal.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=745a3f9dedba5a9d95e86e4129182ba5" alt="Sentinel range — diagonal direction" width="1428" height="1325" data-path="images/ranges/sentinel-diagonal.png" />
  </Tab>
</Tabs>

<Tip>
  Sentinels with refined axionite ammo are extremely powerful — a +3 cooldown stun can completely shut down enemy builder bots.
</Tip>

## Breach

<img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/entities/breach.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=7889cbf3ad02c37519c4f104019d042b" alt="Breach" style={{ width: 64, float: "right", marginLeft: 16 }} width="512" height="512" data-path="images/entities/breach.png" />

Very high damage with **splash**. Attacks in a **180° cone** in the facing direction.

| Property      | Value                                       |
| ------------- | ------------------------------------------- |
| HP            | 60                                          |
| Base cost     | 30 Ti, 10 Ax                                |
| Scaling       | 10%                                         |
| Damage        | 40 direct + 20 splash (8 surrounding tiles) |
| Reload        | 1 round                                     |
| Ammo per shot | 5 (refined axionite only)                   |
| Vision r²     | 10                                          |
| Attack r²     | 5                                           |

<Tabs>
  <Tab title="Cardinal">
    <img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/ranges/breach-cardinal.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=2f62e09312ac5a3fcd12cb4189587aff" alt="Breach range — cardinal direction" width="1257" height="1180" data-path="images/ranges/breach-cardinal.png" />
  </Tab>

  <Tab title="Diagonal">
    <img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/ranges/breach-diagonal.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=fe721de9098408c610778089e7247ccd" alt="Breach range — diagonal direction" width="1257" height="1180" data-path="images/ranges/breach-diagonal.png" />
  </Tab>
</Tabs>

<Warning>
  Breach turrets have **friendly fire** on the splash damage (8 surrounding tiles). They do not damage themselves.
</Warning>

## Launcher

<img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/entities/launcher.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=989b7788e0068096c8742af34b4194fb" alt="Launcher" style={{ width: 64, float: "right", marginLeft: 16 }} width="512" height="512" data-path="images/entities/launcher.png" />

Picks up and **throws adjacent builder bots** to a target tile within range. The target tile must be bot-passable. Unlike other turrets, launchers have **no facing direction** and do not use ammo.

| Property  | Value               |
| --------- | ------------------- |
| HP        | 30                  |
| Base cost | 20 Ti               |
| Scaling   | 10%                 |
| Reload    | 1 round             |
| Vision r² | 26                  |
| Attack r² | 26 (same as vision) |

<img src="https://mintcdn.com/cambridgebattlecode-mintlify-api-updates-1773792477/Zv7Zw9Hd845Vs7ed/images/ranges/launcher.png?fit=max&auto=format&n=Zv7Zw9Hd845Vs7ed&q=85&s=91476c0c63d8604a9f7de8cbb05971e4" alt="Launcher range — blue is vision, red is throw range" width="1287" height="1283" data-path="images/ranges/launcher.png" />

```python theme={null}
# Build a launcher (no direction needed)
c.build_launcher(pos)

# Launch a builder bot to a distant position
if c.can_launch(bot_pos, target_pos):
    c.launch(bot_pos, target_pos)
```
