- Joined
- Oct 4, 2011
- Messages
- 226
Hi im using weeps, damage detection system. Making an ability thats triggered with the units attack. 300 AoE 20 damage and a 20% movement speed slow that lasts 2 seconds. The trouble Im having is figuring out how to check if the damage came from the "damage source" attacking, ONLY. Thank you.
-
Tar missles
-

Events
-


Game - GDD_Event becomes Equal to 0.00
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Tar Missles (Battle Tank) for GDD_DamageSource) Greater than 0
-
-



Then - Actions
-




Set TM1_CasterUnit = GDD_DamageSource
-




Set TM1_CasterLoc = (Position of TM1_CasterUnit)
-




Set TM1_OwnerPlayer = (Owner of TM1_CasterUnit)
-




Set TM1_TargetUnit = GDD_DamagedUnit
-




Set TM1_TargetLoc = (Position of TM1_TargetUnit)
-




Set TM1_InitialDistance = (Distance between TM1_CasterLoc and TM1_TargetLoc)
-




Unit - Create 1 Movement slow (Tank) for TM1_OwnerPlayer at TM1_TargetLoc facing TM1_TargetLoc
-




Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
-




Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
-



Else - Actions
-
-


Custom script: call RemoveLocation(udg_TM1_CasterLoc)
-


Custom script: call RemoveLocation(udg_TM1_TargetLoc)
-
-




