The nociception genes painless and Piezo are required for the cellular immune response of Drosophila larvae to wasp parasitization.