Hello, I want to spawn as many soldiers as my target point value, but even though soldier1 has a value of 10, sometimes it spawns 4, sometimes 5, sometimes 6. I’ve tried these two methods but it’s not working. What should I do? Thank you in advance.
In your first screenshot you’re spawning infinite soldiers unless you have somewhere to make the “Soldier 1” equal to 0 at some point.
Don’t spawn on tick, don’t cast on tick, ever. Also don’t do delays on tick.
Make an event with a “Do N” node or a simple “For loop” with the input of the number of soldiers you want to spawn then substract 1 from the “Soldiers” variable after you spawn a soldier and set the “Soldiers” variable to the new number.
Hello, I tried using a for loop, and it works. Thank you. However, when I set the maximum value to 17 for a new target point, for example, there should be 9 units spawned in one and 8 in the other. Instead, the first one spawns 9, and the second one spawns only 4 units. What should I do to ensure that each spawn point provides the correct number of units?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.