Hello there,
sometimes after I upgrade the tower it stops attacking and I need to right click creeps to make it auto attack again.
I made a trigger to fix that but its annoying and requires me to do that trigger for every singler tower upgrade I made
here is the trigger
is there any other way?
sometimes after I upgrade the tower it stops attacking and I need to right click creeps to make it auto attack again.
I made a trigger to fix that but its annoying and requires me to do that trigger for every singler tower upgrade I made
here is the trigger
Trigger:
- setting target
- Events
- Unit - A unit Is attacked
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Attacking unit)) Equal to Sniper Tower
- (Unit-type of (Attacking unit)) Equal to Sniper Tower (Upgrade level 1)
- (Unit-type of (Attacking unit)) Equal to Sniper Tower (Upgrade level 2)
- (Unit-type of (Attacking unit)) Equal to Sniper Tower (Upgrade level 3)
- Conditions
- Or - Any (Conditions) are true
- Actions
- Hashtable - Save Handle Of(Attacked unit) as (Key (Attacking unit)) of 0 in Carful_Aim_Hashtable
- Events
Trigger:
- Fixing sniper tower auto attack
- Events
- Unit - A unit Finishes an upgrade
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Triggering unit)) Equal to Sniper Tower (Upgrade level 1)
- (Unit-type of (Triggering unit)) Equal to Sniper Tower (Upgrade level 2)
- (Unit-type of (Triggering unit)) Equal to Sniper Tower (Upgrade level 3)
- Conditions
- Or - Any (Conditions) are true
- Actions
- Unit - Order (Triggering unit) to Attack (Load (Key (Attacked unit)) of 0 in Carful_Aim_Hashtable)
- Events
is there any other way?