- Joined
- May 11, 2012
- Messages
- 2,103
as said in the title: the Trig Unit doesn't damages Target Unit... Why is it so?
-
DeathHand Loop
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Set DeathHand_TrigUnitLoc = (Position of DeathHand_TrigUnit)
- Set DeathHand_TargetUnitLoc = (Position of DeathHand_TargetUnit)
- Set DeathHand_Angle = (Angle from DeathHand_TargetUnitLoc to DeathHand_TrigUnitLoc)
- Set DeathHand_MovingTargetUnit = (DeathHand_TargetUnitLoc offset by 20.00 towards DeathHand_Angle degrees)
- Special Effect - Create a special effect attached to the origin of DeathHand_TargetUnit using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move DeathHand_TargetUnit instantly to DeathHand_MovingTargetUnit, facing DeathHand_Angle degrees
- Unit - Cause DeathHand_TrigUnit to damage DeathHand_TargetUnit, dealing (30.00 / (100.00 x (Distance between DeathHand_TargetUnitLoc and DeathHand_TrigUnitLoc))) damage of attack type Spells and damage type Normal
- Set DeathHand_UnitGroup = (Units within 125.00 of DeathHand_TrigUnitLoc)
-
Unit Group - Pick every unit in DeathHand_UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Picked unit) Equal to DeathHand_TargetUnit
-
Then - Actions
- Unit - Create 1 Dummy DeathHand for (Owner of DeathHand_TrigUnit) at DeathHand_TrigUnitLoc facing Default building facing degrees
- Unit - Add Dummy Death Hand to (Last created unit)
- Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
- Unit - Add a 0.30 second Generic expiration timer to (Last created unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_DeathHand_TrigUnitLoc)
- Custom script: call RemoveLocation(udg_DeathHand_TargetUnitLoc)
- Custom script: call RemoveLocation(udg_DeathHand_MovingTargetUnit)
- Custom script: call DestroyGroup(udg_DeathHand_UnitGroup)
-
Events