Kill my enemy by eating a seed

hello. This is the last bit of programming that I need. I can do the rest. Basically I would like to do the sequence where my character kills my enemy (AI) through me eating a special seed, my enemies turn into zombies and I can kill them, they only have their eyes left and they return to their base to regenerate. It is something that I cannot do because it seems complex, but if you can help me, it would be great. Thank you.

21f