Python Unit Upgrade Function?

tsentom1

Bubble Dragon
Joined
Jul 24, 2007
Messages
1,000
Location
New York
Is there a section in the python similar to onunitkilled or onunitbuilt in the event manager to allow something to happen when you upgrade a unit? the most i see is on unit promoted but im sure that affects promotions and not upgrades.
 
There is unfortunately not a native Python unitUpgraded event. However, a unit upgrade does trigger both unitCreated and unitLost events if they are enabled in PythonCallbackDefines.xml so depending on your needs you might be able to work around it.
 
Top Bottom