- Joined
- May 11, 2012
- Messages
- 2,103
how do I properly remove picked unit after it's damaged? I want every picked unit to be damaged once... I tried to do some things, but i failed.
-
Demon Slash Loop
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Set TempPoint = (Position of DemonSlash_TrigUnit)
- Set DemonSlash_UnitGroup = (Units within 75.00 of TempPoint)
-
Unit Group - Pick every unit in DemonSlash_UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Picked unit) belongs to an enemy of (Owner of DemonSlash_TrigUnit)) Equal to True) and (((Picked unit) is alive) Equal to True)
-
Then - Actions
- Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Banish\BanishTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Cause DemonSlash_TrigUnit to damage (Picked unit), dealing Damage[Damage_Integer] damage of attack type Spells and damage type Normal
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_DemonSlash_UnitGroup)
- Custom script: call RemoveLocation(udg_TempPoint)
-
Events