---
title: "Packet 87: PlaceMG"
description: "Requests placement of a type-7 mounted machine gun. The server owns yaw, team, health, occupancy, and join persistence after validation."
canonical: "https://aosplay.net/protocol-168/packets/87"
markdown: "https://aosplay.net/docs/protocol-168/packets/87.md"
last_updated: "2026-07-16"
protocol: "Ace of Spades Battle Builder 168"
packet_id_decimal: "87"
packet_id_hex: "0x57"
direction: "C→S"
family: "Deployables"
implementation_status: "Handled"
evidence: "Live-verified"
wire_size: "14 bytes"
---

# Packet 87: PlaceMG

> Requests placement of a type-7 mounted machine gun. The server owns yaw, team, health, occupancy, and join persistence after validation.

- **Decimal ID:** 87
- **Hex ID:** 0x57
- **Direction:** C→S
- **Family:** Deployables
- **Status:** Handled
- **Evidence:** Live-verified
- **Wire size:** 14 bytes

## Implementation note

Corrected runtime layout: coordinates are literal u16 voxels; only yaw is fixed-point.

## 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 87 (0x57). | — |
| 1 | `loop_count` | i32 LE | 4 | Simulation-loop stamp used for ordering, prediction, or reconciliation. | — |
| 2 | `player_id` | u8 | 1 | Compact player-slot identifier. | — |
| 3 | `position` | 3 × u16 LE | 6 | Raw X, Y, and Z voxel coordinates. | — |
| 4 | `yaw` | sign-magnitude fixed16 LE (1/64) | 2 | yaw value. | — |

## 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/87)
- [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)
