- Joined
- Dec 5, 2009
- Messages
- 846
Hello there i want some help with one trigger this one:
-
Events
- Time - Every 1.00 seconds of game time
-
Actions
- Set Temp_Unit[2] = (Target unit of ability being cast)
- Set Temp_Point[2] = (Position of Temp_Unit[2])
- Set Temp_Point[3] = (Position of (Last created unit))
- Set Temp_Real = (Distance between Temp_Point[3] and Temp_Point[2])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Temp_Real Less than or equal to 300.00
-
Then - Actions
- Floating Text - Destroy (Last created floating text)
- Trigger - Turn off Kamikaze Sheep <gen>
- Set Temp_Group = (Units within 300.00 of Temp_Point[3] matching (((Matching unit) belongs to an enemy of (Owner of Temp_Unit[1])) Equal to True))
- Unit - Remove (Last created unit) from the game
- Special Effect - Create a special effect at Temp_Point[3] using Objects\Spawnmodels\Human\HCancelDeath\HCancelDeath.mdl
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
- Unit - Cause Temp_Unit[1] to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Temp_Group)
- Custom script: call RemoveLocation(udg_Temp_Point[1])
- Custom script: call RemoveLocation(udg_Temp_Point[3])
- Custom script: call RemoveLocation(udg_Temp_Point[2])
- Else - Actions
-
If - Conditions