- Joined
- Jul 30, 2018
- Messages
- 445
Hey!
I have a stupid problem. When a unit starts constructing a building, I should then check, if the unit constructing the building (i.e. the peon / peasant / etc) has enough mana.
Problem is, if I use trigger "A unit begins construction" and then constructing unit or triggering unit, they both actually refer to the unit being built (like a tower, for example), not to the one building the building.
So, is there some other unit variable or event, that I could use to "catch" the unit building the building, or is there perhaps some other way to add mana cost for building?
I have a stupid problem. When a unit starts constructing a building, I should then check, if the unit constructing the building (i.e. the peon / peasant / etc) has enough mana.
Problem is, if I use trigger "A unit begins construction" and then constructing unit or triggering unit, they both actually refer to the unit being built (like a tower, for example), not to the one building the building.
So, is there some other unit variable or event, that I could use to "catch" the unit building the building, or is there perhaps some other way to add mana cost for building?