I'm not sure if you can tie displacement brushes to entities but if so then I'm guessing they tied the sand to a trigger_multiple with an output along the lines of the monster spawning with an animation and a gibshooter maybe. Sorry I'm so vague but I can't quite remember what it looks like when they appear and I am just guessing at it. There may be an easier way, like a specific entity or something.
I'm guessing you'd use the env_player_surface_trigger point based entity, and then use the OnSurfaceChangedToTarget and OnSurfaceChangedFromTarget outputs to activate and deactivate the npc_antlion_template_maker entity.