Been at this for a while but whenever I try to get the "Target point of ability being cast", it just targets the center of the map. Not really sure why. The trigger works fine except that BarrageTarget always goes to the center of the map.
The trigger is only half done so nothing will stop the loops.
-
Barrage
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Barrage
-
-
Actions
-
Unit - Pause (Triggering unit)
-
Animation - Play (Triggering unit)'s attack animation
-
Set BarrageUnit = (Triggering unit)
-
Set BarrageTarget = (Target point of ability being cast)
-
Trigger - Turn on BarrageAttack <gen>
-
Trigger - Turn on BarrageEffect <gen>
-
-
-
BarrageEffect
-
Events
-
Time - Every 0.50 seconds of game time
-
-
Conditions
-
Actions
-
Set Temp_Point = (Position of BarrageUnit)
-
Unit - Create 1 Barrage Unit for (Owner of BarrageUnit) at Temp_Point facing Default building facing degrees
-
Unit - Hide (Last created unit)
-
Unit - Turn collision for (Last created unit) Off
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Set BarrageRegionPoint1 = (BarrageTarget offset by (-100.00, 100.00))
-
Set BarrageRegionPoint2 = (BarrageTarget offset by (100.00, -100.00))
-
Set Temp_Point = (Random point in (Region(BarrageRegionPoint1, BarrageRegionPoint2)))
-
Unit - Make BarrageUnit face Temp_Point over 0.50 seconds
-
Unit - Order (Last created unit) to Attack Ground Temp_Point
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
Custom script: call RemoveLocation (udg_BarrageRegionPoint1)
-
Custom script: call RemoveLocation (udg_BarrageRegionPoint2)
-
-
The trigger is only half done so nothing will stop the loops.