- Joined
- Feb 17, 2018
- Messages
- 114
So, I've made a spell based on channel with point-target. The idea of the spell is that it creates a dummy with locusts and this dummy must go into target point of abillity beign cast direction untill it reaches the edge of playable map area and dies after. But the problem is that unit goes only 0, 45, 90, 135, 180, 225, 270, 315 degrees. My researched showed that if I shorten an offset range the unit will go the right direction but won't go trought the entire map (I think this is connected with the map size (changing map size won't help)). In short: i need unit to go the direction of target point of ability being cast till it reaches the end of the map. Here are the triggers:
-
Scout
-
Events
-
Unit - A unit starts an effect of ability
-
-
Conditions
-
(Ability being cast) equals Ð Scout
-
-
Actions
-
Unit - Create 1 Scout for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Target point of ability being cast)
-
Set aa_TempPoint = (Position of (Last created unit))
-
Set aa_TempPoint2 = (aa_TempPoint offset by 15000.00 towards (Facing of (Last created unit)) degrees)
-
Unit - Order (Last created unit) to move aa_TempPoint2
-
Custom script: call RemoveLocation(udg_aa_TempPoint)
-
Custom script: call RemoveLocation(udg_aa_TempPoint2)
-
-
-
RemoveScout
-
Events
-
Unit - A unit leaves (Playable map area)
-
-
Conditions
-
(Unit-type of (Triggering unit)) equals Scout
-
-
Actions
-
Unit - Remove (Triggering unit) from the game
-
-