[General] How to make interruption function in my map?

Status
Not open for further replies.
You need to keep track of the abiliites being cast with another system (might require you make it). You can then look up which ability the unit is casting at the time it takes damage.

Such a system could be made roughly with 2 triggers and a hashtable. When the unit starts an ability you use the hashtable to map the ability type to the unit. When the unit finishes an ability and the hashtable says the ability is being cast you then remove the mapping from the hashtable. In your damage response trigger you can look up which ability the unit is casting with the hashtable.

Be warned that the GUI action for ability type is currently broken and causes the editor to crash on selection as it tries to use the jass type rather than an integer (what GUI expects).
 
Status
Not open for further replies.
Back
Top