Hi there, everyone. I want to spawn a unit (take for instance Siege Engine) for every 15 seconds. Each of this unit takes up 5 foods.
I have 3 Farms, each supplies 10 foods. Therefore, it has 30 foods supplied overall.
How do I stop the spawning function once the food used reaches the food supplied? It doesn't have to be 30. What happens if one or two of the Farm is destroyed and the food supplies reduces to 20 or 10 or 0? Basically I want this function implemented such that it will be almost the same as training normal units under the numbers of food supplied but using the "Unit - Create Units" action instead.
I hope my question has made it clear for you. I will be appreciated if anyone can help me with this. Thank you.
I have 3 Farms, each supplies 10 foods. Therefore, it has 30 foods supplied overall.
How do I stop the spawning function once the food used reaches the food supplied? It doesn't have to be 30. What happens if one or two of the Farm is destroyed and the food supplies reduces to 20 or 10 or 0? Basically I want this function implemented such that it will be almost the same as training normal units under the numbers of food supplied but using the "Unit - Create Units" action instead.
I hope my question has made it clear for you. I will be appreciated if anyone can help me with this. Thank you.