[General] Upgrade and Spawn

Status
Not open for further replies.

sentrywiz

S

sentrywiz

Hi

Need help with:
  • Unit - A unit Finishes an upgrade
I have barracks (example)
A player upgrades Barracks to Barracks 2.
The trigger sees when upgrade is complete, then starts to build the units from Barracks 2.

This isn't about a research. I want to build units automatically through a trigger upon upgrade of a building. Since I couldn't find a "Upgraded Unit" in the unit-type, I'm stuck.
 
I don't this but I think you can use the Unit - Create units facing angle or what. I'm not really sure about it...
 
You can use Boolean variable for this.
Puts a check there whether the Boolean is True or False

Let's say you have a Boolean variable named "Upgrade" and initially, you set it to False.

Each time the building is trying to build a unit via triggers, put an IF/THEN/ELSE function there

When that building finished an upgrade, just set the Boolean to True, meaning the building is already been upgraded and will spawn new units instead old ones
 
Thanks, I figured it out myself.
No need for further discussion
 
Status
Not open for further replies.
Back
Top