- Joined
- Jun 27, 2010
- Messages
- 2,744
So I have a unit with an ability that is triggered. It moves one of the two portals on the location of ability being cast. The portals are units that have gateway ability. On start, the portals are on default location with their regions. But when I use the ability, the portal changes location, but when you click on it to use it the unit starts for the old location of the portal and teleports from there. My question is how to fix this?
-
portals
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Arcane Gateway (Time Warper)(R)
-
-
Actions
-
Set Portal_Loc = (Target point of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Portal Equal to False
-
-
Then - Actions
-
Unit - Move Portals[2] instantly to Portal_Loc
-
Region - Center Portal 1 <gen> on Portal_Loc
-
Set Portal = True
-
Skip remaining actions
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Portal Equal to True
-
-
Then - Actions
-
Unit - Move Portals[1] instantly to Portal_Loc
-
Region - Center Portal 2 <gen> on Portal_Loc
-
Set Portal = False
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_Portal_Loc)
-
-