Jump to content

Upgrade unit when attacked


screab
 Share

Recommended Posts

  • 4 months later...
  • 2 weeks later...

For managing the attacked units see defenseManager.js:checkEvents  , for upgrade -- I don't see any code where Petra issues 'upgrade' commands (doesn't it upgrade towers?), but it should be possible do to in the same way as all other commands (see 'Engine.PostCommand' calls in common-api/entity.js , 'upgrade' command definition in Commands.js, and its usage in gui scripts).

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...