So I created a system that spawns a coin when I kill an enemy. I have 2 problems I can't seem to overcome and I think I am overthinking it at this point.
1) If i spawn multiple enemies only the first one will drop the coin.
2) Is it possible to draw a random number (This part I know how to do) and use that number to generate how many coins are spawned.
asked Oct 27 '15 at 03:09 AM in Blueprint Scripting
1, seems weird, wouldnt you just spawn the coins on death? if so, then the number of enemies spawned shouldnt matter.
UNLESS, you are "spawning" them by placing them in the world, and using an exposed variable to set a value for the number of coins dropped.
2, Yes, there are random number nodes, clamp it to a certain range, feed it into a for loop, the for loop has a max loop count of (random number) each time the loop passes, it spawns another coin, until it hits the loop count.
answered Oct 27 '15 at 04:31 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here