Hello, how do i check if a unit reaches a point?
My idea is to turn on the loop trigger if the unit reaches the TargetPoint.
My idea is to turn on the loop trigger if the unit reaches the TargetPoint.
-
Arance Blast inst
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Arcane Blast
-
-
Actions
-
Set VariableSet AraneBlast_Caster = (Triggering unit)
-
Set VariableSet ArcaneBlast_Player = (Owner of AraneBlast_Caster)
-
Set VariableSet ArcaneBlast_CasterPoint = (Position of AraneBlast_Caster)
-
Set VariableSet ArcaneBlast_TargetPoint = (Target point of ability being cast)
-
Set VariableSet ArcaneBlast_Distance = (Distance between ArcaneBlast_CasterPoint and ArcaneBlast_TargetPoint)
-
Set VariableSet ArcaneBlast_AreaPick = (Units within 400.00 of ArcaneBlast_TargetPoint.)
-
-------- Damage Start --------
-
Set VariableSet ArcaneBlast_Dmg = 50.00
-
-------- Damage Increase Per level --------
-
Set VariableSet ArcaneBlast_DmgIncrement = 50.00
-
-------- Dummy --------
-
Set VariableSet ArcaneBlast_DummyType = Dummy ArcaneBlast¨
-
Unit - Create 1 ArcaneBlast_DummyType for ArcaneBlast_Player at ArcaneBlast_CasterPoint facing Default building facing degrees
-
Set VariableSet ArcaneBlast_Dummy = (Last created unit)
-
Unit - Order ArcaneBlast_Dummy to Move To ArcaneBlast_TargetPoint
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Trigger - Turn on Arance Blast loop <gen>
-
-
Else - Actions
-
-
-