Basically I have a behavior that will produce units on the barracks, It will only produce(and is suppose to) a certain amount, and no more.
So to prevent a player from clicking to train additional units I removed "Train Marine" ability from the command card
Now when the Unit is being produced the icon next to the building/status bar in on the barracks is a blue icon. Basically the "Train Marine" ability being placed in the command card gives the icon to what its training (logical, but doesn't help me)
What I need is a way to have the behavior train marines and without the player being able to click the ability to add more.
This is the requirement of the behavior to keep it to 4 marines per barracks, more barracks, more marines but the player can just click to add more than intended.
Any ideas, either in having the barracks have the Train Marine ability, and then with a behavior prevent more from being produced, or by having the ability removed from the command card and still have the icon while being produced..
Basically I have a behavior that will produce units on the barracks, It will only produce(and is suppose to) a certain amount, and no more. So to prevent a player from clicking to train additional units I removed "Train Marine" ability from the command card
Now when the Unit is being produced the icon next to the building/status bar in on the barracks is a blue icon. Basically the "Train Marine" ability being placed in the command card gives the icon to what its training (logical, but doesn't help me)
What I need is a way to have the behavior train marines and without the player being able to click the ability to add more.
CountUnit(Marine,QueuedOrBetter) < (CountUnit(Barracks,Total) * 4)
This is the requirement of the behavior to keep it to 4 marines per barracks, more barracks, more marines but the player can just click to add more than intended.
Any ideas, either in having the barracks have the Train Marine ability, and then with a behavior prevent more from being produced, or by having the ability removed from the command card and still have the icon while being produced..
Use autocast on it, so it automatically does it, and use triggers to make it so the barracks can not be used
Put your requirement into the train ability itself for the Marine entry. Players won't be able to train or queue more marines.