Hi, how can I make it so that my game spawns my zombie AI from multiple spawn points rather than just one? I have tried connecting this up to a target point and setting multiple ones however I cannot reference the target point within the level blueprint.
Where are the target points? Placed in the level or spawned dynamically via another blueprint?
I assume this is just for this level? Normaly this code should be inside game mode, without it you will need to copy paste this code to all your levels.
First of all make spawn point blueprint, make it register it self to game mode on begin play via some function that will take spawn point as argument, game mode would then add it to array variable of those. Then put delay on BeginPlay in your level blueprint just to make sure all points will have time to register, then on Spawn Zombie, randomize number between 0 and Spawn point size - 1 and get item from that randomized index and spawn from point of randomized item of array.
Also why you put delay on tick? that tick will trigger delay on every frame, it will only delay execution of tick but frequncy of execution will say the same. But if it’s intentional it’s not very healthy way to do this, as you spamming latent request system with delay entries, which needlessly fills the memory, use timer or you could as least count down delta seconds