- Joined
- Oct 25, 2009
- Messages
- 996
How can i damage an unit 1 time with every 0.03 second?
I try use the unit group but i dunno how to use lol.
+REP FOR HELPERS
I try use the unit group but i dunno how to use lol.

+REP FOR HELPERS
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Cast

Events


Unit - A unit Starts the effect of an ability

Conditions

Actions


Unit Group - Add (Target unit of ability being cast) to UnitGroupVariable
Loop

Events


Time - Every 0.03 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in UnitGroupVariable and do (Actions)



Loop - Actions




Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - YourDamageVariable)
native UnitDamageTarget takes unit whichUnit, widget target, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType returns boolean
Unit Group - Pick every unit in UnitGroupVariable and do (Actions)

Loop - Actions


Unit - Cause unit1 to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
Loop
Events

Time - Every 0.03 seconds of game time
Conditions
Actions

Unit - Damage Target yourunitvariable dealing 1 damage to yourtargetvariable.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions


(DR_TargetUnit[DR_TempInt] is in DR_EnemyGroup[1]) Equal to True

Then - Actions


Unit Group - Add DR_TargetUnit[DR_TempInt] to DR_EnemyGroup[1]

Else - Actions


Animation - Play DR_Caster[DR_TempInt]'s attack animation


Unit - Cause DR_Caster[DR_TempInt] to damage DR_TargetUnit[DR_TempInt], dealing DR_Damage[DR_TempInt] damage of attack type Spells and damage type Normal


Unit Group - Add DR_TargetUnit[DR_TempInt] to DR_EnemyGroup[1]
This or show whole trigger.
