Can any one help me to fix this?

hi guys !

i have a littel problem on my project .
the problem is how to fix spawn enemies
i follow the tut in unreal engine channel
it worked but when i’m try to copy the actor to another location
thw spawn only work for first location and nothing in other locations
is there a way to make it spawn in any location i want
there are a pics

game mode

spawn class

and in this pic when i try to make a 2 copy from blueprint in map only one work .

how can i make the 2 copy spawn zombie class with diffrent number of enemis ?
sory for bad english

In your first image you call all actors of class but only get index 0 so the first you spawned, just use a for each loop instead of the get node

Then expose your number of zombie spawn int on spawn and you’ll be able to change the number when you add it to your map

Sorry I’ve edited twice the post but I was saying anything, now this is the good answer :slight_smile:

Something like this simply

thanks i will try it out and give you the result

Yes and you shouldn’t use a get all actors of class each times, this is a pretty expensive node if you call it in loop, just add an integer you add 1 each loop

thanks
the first method it worked but i have a problem
when i enter number of zombies for both class for example 4 for both
it split the number i should have 8 zombies but it spaawn 4

Maybe it’s because it’s a function, try use a custom event like below.

I ve set everything in the same BP but link the array element from the for each loop to the custom event target.
Make sure you set your max zombie to editable too.

If it’s still don’t work, I don’t know, I thought each instance of the BP has its how behaviour.