Enemy spawn pool script

Hey im trying to make a script with an array that can hold all my enemy,s and then i will spawn them from it but i want it to rename them so that the will be called Enemy1, Enemy2 and so on any one that have a good idea on how to do that :slight_smile: i have tried but im not that good with array,s :slight_smile:

Thanks

i am doing the same its simple. just spawn them from a prefab variable then set the name to β€œEnemy” + arrayIndex + 1 the plus 1 is because arrays start with zero and u dont want enemy 0, enemy 1, enemy 2 etc.

What I do, I use spawnController:Spawn Controller Link with my product. UniDDatabase. Both of them make a powerful combination for that type of task.

PS:I have no affiliation with Spawn Controller. I just use it in my games.

Thx both of you :slight_smile: dont got any money at all for the project so im going to try it myself :wink:

Kieran i really hate to ask but can i help me some more ??? im trying to get your suggestion to work but i have never really worked with array and im failing hard :frowning: can you maybe make a example script :slight_smile:

Just because you have no money I can still give you some pointers. When I had hard times nobody helped me. I always told myself. If I ever had something to offer I would help others.

You can check these two links. They are great starting points.

Array Tutorial

Array Class

Thx alot namoricoo :smile: ill look at them :slight_smile:

ill post it soon i am at school and it is on ma computer at home and those tutorials should help at first

ok thx alot :smile: