So i've been struggling with this issue of making it so my buildings only make one unit at a time, like warcraft 2 style.
I tried this - Limiting Training Que - but it's broken. For one its not aesthetically pleasing. The bigger problem is that by hitting the hotkey for the trained unit and quickly clicking on another building, say a farm for example, you can queue a unit and change target before the esc key is pressed. No good at all for what i'm looking for.
So i came up with a creative solution. I removed all trained units from the building tech tree, and replaced them with only sold units. So the town hall only sells peasants, and one peasant at a time, with a 10 second cool down timer. Then i used the value of movement height in the peasants and set it for ten. I did the same thing with all the units in my map, giving the buildings a selling cooldown and matching the movement height with the cooldown. Then I used this trigger.
It works super well and i'm proud of myself for my creative solution, and I could not be happier with the look and feel of it. The problem I now face is the sound. The sound for training completion is played the moment the hotkey to train(buy) is pressed, instead of when the cooldown ends and the unit is created.
Does anyone have a solution for how to stop the sound from playing, and to play the units default created sound after the timer expires?
edit - so i found a potential solution. Export the sound file, ad a delay before the start, and import the sound file. However this is a LOT of work. Hopefully someone has an easier solution.
I tried this - Limiting Training Que - but it's broken. For one its not aesthetically pleasing. The bigger problem is that by hitting the hotkey for the trained unit and quickly clicking on another building, say a farm for example, you can queue a unit and change target before the esc key is pressed. No good at all for what i'm looking for.
So i came up with a creative solution. I removed all trained units from the building tech tree, and replaced them with only sold units. So the town hall only sells peasants, and one peasant at a time, with a 10 second cool down timer. Then i used the value of movement height in the peasants and set it for ten. I did the same thing with all the units in my map, giving the buildings a selling cooldown and matching the movement height with the cooldown. Then I used this trigger.

It works super well and i'm proud of myself for my creative solution, and I could not be happier with the look and feel of it. The problem I now face is the sound. The sound for training completion is played the moment the hotkey to train(buy) is pressed, instead of when the cooldown ends and the unit is created.
Does anyone have a solution for how to stop the sound from playing, and to play the units default created sound after the timer expires?
edit - so i found a potential solution. Export the sound file, ad a delay before the start, and import the sound file. However this is a LOT of work. Hopefully someone has an easier solution.
Last edited: