TPOX
New Member
- Reaction score
- 10
I slimmed down the trigger to basic. When it does its thing and does wait until unit is 0 height then keep going but instead it just blows on through and does not wait at all.
What it is doing below is when i cast an ability it creates a dummy sets his height to heros height then makes height go down to 0 by 200 so its basically 2 seconds depends on how high u are which is why i can not have a wait time condition. After the condition it does its thing damaging area ect.
What it is doing below is when i cast an ability it creates a dummy sets his height to heros height then makes height go down to 0 by 200 so its basically 2 seconds depends on how high u are which is why i can not have a wait time condition. After the condition it does its thing damaging area ect.
Code:
Destruction
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Destruction
Actions
Set CastingUnit_Destruction = (Casting unit)
Set TargetPoint = (Target point of ability being cast)
Unit - Create 1 Destruction Dummy for (Owner of CastingUnit_Destruction) at (Position of CastingUnit_Destruction) facing TargetPoint
Set DummyUnit_Destruction = (Last created unit)
Animation - Change DummyUnit_Destruction flying height to (Current flying height of CastingUnit_Destruction) at 0.00
Set HeightDistance = (Integer((Current flying height of DummyUnit_Destruction)))
Animation - Change DummyUnit_Destruction flying height to 0.00 at 200.00
Wait until ((Integer((Current flying height of DummyUnit_Destruction))) Equal to 0), checking every 1.00 seconds
Unit - Kill DummyUnit_Destruction
Unit Group - Pick every unit in (Units within (300.00 x (Real((Level of Destruction for CastingUnit_Destruction)))) of TargetPoint matching (((Matching unit) belongs to an enemy of (Owner of CastingUnit_Destruction)) Equal to True)) and do (Unit - Order CastingUnit_Destruction to damage (Picked unit) for ((Real(HeightDistance)) x ((0.50 x (Real((Level of Destruction for CastingUnit_Destruction)))) + 0.50)) using attack type Normal and damage type Universal.)
Set CastingUnit_Destruction = No unit
Set TargetPoint = (Target point of ability being cast)
Set DummyUnit_Destruction = No unit
Set HeightDistance = 0


