Can I make one common AI for a lot of NPC?

You can also look into the Mass Entity system if you have the time and courage

It’s a lot more complex, but build specifically for controlling many objects