---
title: "Packet 20: HitEntity"
description: "Invokes the visual impact callback for an authoritative hit on a damageable entity."
canonical: "https://aosplay.net/protocol-168/packets/20"
markdown: "https://aosplay.net/docs/protocol-168/packets/20.md"
last_updated: "2026-07-16"
protocol: "Ace of Spades Battle Builder 168"
packet_id_decimal: "20"
packet_id_hex: "0x14"
direction: "S→C"
family: "Entities"
implementation_status: "Sent"
evidence: "Implementation-backed"
wire_size: "10 bytes"
---

# Packet 20: HitEntity

> Invokes the visual impact callback for an authoritative hit on a damageable entity.

- **Decimal ID:** 20
- **Hex ID:** 0x14
- **Direction:** S→C
- **Family:** Entities
- **Status:** Sent
- **Evidence:** Implementation-backed
- **Wire size:** 10 bytes

## Exact wire layout

The application packet ID is the first byte. The remaining rows are in decode order. Byte sizes exclude ENet headers, wrapper prefixes, LZF chunk framing, and compression effects.

| # | Field | Encoding | Bytes | Purpose | Condition |
| ---: | --- | --- | ---: | --- | --- |
| 0 | `packet_id` | u8 | 1 | Always 20 (0x14). | — |
| 1 | `entity_id` | i16 LE | 2 | Scene-local entity identifier. | — |
| 2 | `impact_position` | 3 × fixed16 LE | 6 | X, Y, and Z components at 1/64-unit precision. | — |
| 3 | `type` | u8 | 1 | Impact/effect discriminator. | — |

## Encoding conventions

- `LE` means least-significant byte first.
- `fixed16` is two-byte sign-magnitude at 1/64 precision.
- `orientation16` uses the measured 1/8192 orientation mapping.
- NUL strings consume their encoded byte length plus one `00` terminator.
- Counted arrays repeat immediately in the documented order.

## Related resources

- [HTML packet page](https://aosplay.net/protocol-168/packets/20)
- [Complete packet catalog](https://aosplay.net/protocol-168/packets)
- [Packet catalog in Markdown](https://aosplay.net/docs/protocol-168/packets.md)
- [Protocol 168 guide](https://aosplay.net/protocol-168)
