Spawning from multiple target points
Hey guys,Ive got a character to spawn from one of the target points in the level, how do i get it to spawn from several points and randomly
asked Oct 29 '14 at 09:48 PM in Blueprint Scripting
That's how you set up random values.
Just set the range for the random values, probably integer, and set conditions for which spawn points it will use.
Based on your question and the nodes I'm seeing, you're wanting a random effect, with both location of spawn and number of spawned fishies.
Perhaps you could start by randomizing the delay. Use the float randomizer and set the range to something like .3 to 1.
Set up branches, using the randomized values as conditions. For example, your randomized range could be 0-4, using a randomized integer.
Branch 1: check if random value is 0. True: no spawn. False: go to next branch
Branch 2: check if random value is 1. True: spawn at location 1. False, go to next branch.
You see where I'm going. Let me know if this achieves what you're wanting.
If you're wanting to spawn multiple fishes, duplicate the system and have it come out of an already-active spawn node. Then you'd have 2 randomized fishes at once. Keep going for as many as you want, and in conjunction with the randomized delay, you should have a pretty random effect.
answered Oct 29 '14 at 11:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here