# Why do the antlions only come when you touch the sand?

- Series: [How It Spawns](https://miu.fm/howitspawns.md)
- Published: 2026-11-22
- Page: https://miu.fm/howitspawns/why-do-the-antlions-only-come-when-you-touch-the-sand

## Story

Why do the antlions only come when you touch the sand?

On Half-Life 2's Sandtraps beach, the antlions that chase you aren't waiting under the sand for your footsteps. The game is watching your feet. Each time your movement finds the ground it reads the surface under you, and when that changes it tells any "player surface trigger" that is watching. This beach has one set to sand.

The moment your foot touches sand, the map shakes the screen, starts a rumble, and one second later switches a spawner on. It tries every 0.35 seconds, keeps at most five of its antlions alive, and puts each one at the burrow nearest the spot where you'll be in a second and a half. Step back onto a rock and the rumble stops; half a second later the spawner switches off. The ones already out still come for you.

A jump never takes you off the sand. In the air the game reports no ground at all, and the trigger ignores that. Valve's code says why: "Ignore players in the air (stops bunny hoppers escaping triggers)". And a hop over a strip of sand from rock to rock never touches it.

In the game's developer commentary (2024), Valve's Adrian Finol: "Building gameplay around broadly understood concepts like 'the floor is lava' made training it easy."

The beach, rocks, burrows and bugs on screen are our own simplified version of the rule, run in code; the jumps are shown slowed down. Not affiliated with or endorsed by Valve.

So how did you cross: rocks, or sand?

Sources: Half-Life 2 (Valve, 2004): Valve's released source code (Source SDK: gamemovement.cpp, env_player_surface_trigger.cpp, antlion_maker.cpp, monstermaker.cpp; files headed Copyright 1996-2005, the same in Valve's Source SDK 2013); the d2_coast_11 map's own entities (Steam build); Half-Life 2 developer commentary, 20th Anniversary update (Valve, 2024).
Sounds and music: our own, made in code.

## Watch

- Instagram: https://www.instagram.com/reel/DgDpw97gU_o/
- YouTube: https://www.youtube.com/shorts/xtNDh4BDi98

---

Under copyright law, a quotation must name its source: Miuradio, https://miu.fm/howitspawns/why-do-the-antlions-only-come-when-you-touch-the-sand

© 2026 Miuradio, https://miuradio.com
