- Joined
- Jan 17, 2009
- Messages
- 372
I am making a spell and whenever i set a condition to check if a unit is alive when setting my unit group it wont select any units. Please help.. here is an example:
please tell me how to fix!
-
Example Spell
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to War Stomp
-
-
Actions
-
Set Temp_Point = (Position of (Triggering unit))
-
Set UnitGroup = (Units in (Region centered at Temp_Point with size (500.00, 500.00)) matching (((Picked unit) is alive) Equal to True))
-
Unit Group - Pick every unit in UnitGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
-
-
-
Custom script: call RemoveLocation(udg_TempPoint)
-
Custom script: call DestroyGroup(udg_UnitGroup)
-
-
please tell me how to fix!