AreaBashP1
Now i have one question.
When i select the tower that has this 15% ability chance, and constantly press s s s s s the ability occurs but there is no missile. I want to make the ability happens when the missile hits it's target. Just like critical strike on ranged unit. It happens when the missile hits the unit. How to do this? plz help
Code:
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Ancient Protector
(Owner of (Attacking unit)) Equal to Player 1 (Red)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to BashPercent[1]
Then - Actions
Set TempPoint = (Position of (Attacked unit))
Set TempUnit = (Units within 300.00 of TempPoint matching (((Owner of (Attacked unit)) Equal to Player 11 (Dark Green)) or ((Owner of (Attacked unit)) Equal to Player 12 (Brown))))
Unit - Create 1 dummy for (Owner of (Attacking unit)) at TempPoint facing Default building facing degrees
Unit Group - Pick every unit in TempUnit and do (Actions)
Loop - Actions
Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
Custom script: call RemoveLocation(udg_TempPoint)
Custom script: call DestroyGroup(udg_TempUnit)
Else - Actions
Now i have one question.
When i select the tower that has this 15% ability chance, and constantly press s s s s s the ability occurs but there is no missile. I want to make the ability happens when the missile hits it's target. Just like critical strike on ranged unit. It happens when the missile hits the unit. How to do this? plz help