- Joined
- Jun 7, 2008
- Messages
- 440
Hey fellow hivers,
Quick question; Is there a way to detect if a structure cancels an upgrade?
For instance,
I need to detect when a player cancels an upgrade I tried doing it by training/cancelling, but I still came up short with trying to detect the cancellation.
Any ideas?
Quick question; Is there a way to detect if a structure cancels an upgrade?
For instance,
-
Demolish
-
Events
-
Unit - A unit Cancels an upgrade
-
-
Conditions
-
Actions
-
Set Temp_Unit = (Triggering unit)
-
Set Target = (Owner of Temp_Unit)
-
Unit - Explode Temp_Unit
-
Player - Set Target Current gold to ((Target Current gold) - (Point-value of Temp_Unit))
-
Custom script: set udg_Temp_Unit = null
-
Custom script: set udg_Target = null
-
-
I need to detect when a player cancels an upgrade I tried doing it by training/cancelling, but I still came up short with trying to detect the cancellation.
Any ideas?