I recently started work on my first sc2 map and I'm creating a custom hero defense style of game. All the heroes are relatively identical except for their model so I was thinking that I would create a HeroTemplate unit that each Hero would then use as its parent. This way if I wanted to change the starting health or energy of each unit, I need only update in one place then have all children inherit the value.
Has anyone had success with this method? Or does anyone know of a better way of doing it?
I ran into a problem where any unit that inherits from my HeroTemplate unit can't be selected in game. I try to click them, hit F2, or drag a selection box over them and nothing happens. I can attack the units though. I tried comparing all the unit fields to a hero made using the default unit and everything appears to be exactly the same.
I currently have over 20 models planned so if I need to change stats to balance or add a new ability it seems there should be a single source of truth for all of them rather than updating all 20+ individually.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I recently started work on my first sc2 map and I'm creating a custom hero defense style of game. All the heroes are relatively identical except for their model so I was thinking that I would create a HeroTemplate unit that each Hero would then use as its parent. This way if I wanted to change the starting health or energy of each unit, I need only update in one place then have all children inherit the value.
Has anyone had success with this method? Or does anyone know of a better way of doing it?
I ran into a problem where any unit that inherits from my HeroTemplate unit can't be selected in game. I try to click them, hit F2, or drag a selection box over them and nothing happens. I can attack the units though. I tried comparing all the unit fields to a hero made using the default unit and everything appears to be exactly the same.
I currently have over 20 models planned so if I need to change stats to balance or add a new ability it seems there should be a single source of truth for all of them rather than updating all 20+ individually.