Enemy architecture question

Godot Version

I believe it's 4.6

Question

hi I need help making a tutorial more complicated than it needs to be. I followed a tut for making a tower defense game. In the tutorial there is only one enemy. It's a pathfollow3d node with a mesh, a collisionshape3d and an animation. So I made five more enemies, made them all children of that pathfollow3d and I just don’t know how to say “if I am a zombie then when I die run the zombie death animation". I don’t want to get an AI to do it for me. I want to learn. So my first question is am I doing this a super dumb way? Should they each have a separate pathfollow? I’m sure there is an easy way to do this.

I applaud this.

Can you show us the code you are using for your enemies. Put it between ``` on the line above and below like this:

```gd
# Put your code here
```

And it’ll look like this:

# Put your code here