- Joined
- Mar 24, 2013
- Messages
- 1,105
Hello, I'm trying to create a line of units, but if I have the pathing for the unit on, they "push" each other making a deformed line.
-
PC
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to (==) PC
-
-
Actions
-
Set PC_MaxIndex = (PC_MaxIndex + 1)
-
Set PC_Caster[PC_MaxIndex] = (Triggering unit)
-
Set TempLoc = (Position of PC_Caster[PC_MaxIndex])
-
Set TempReal2 = (Facing of PC_Caster[PC_MaxIndex])
-
Set TempLoc2 = (TempLoc offset by 256.00 towards (180.00 + TempReal2) degrees)
-
Set PC_Counter[PC_MaxIndex] = 100
-
Set PC_Group[PC_MaxIndex] = (Create Unit Group)
-
Unit - Create 1 Power Cog for (Owner of PC_Caster[PC_MaxIndex]) at TempLoc2 facing Default building facing (270.0) degrees
-
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
Unit Group - Add (Last created unit) to PC_Group[PC_MaxIndex]
-
Do Multiple ActionsFor each (Integer TempInteger) from 1 to 6, do (Actions)
-
Loop - Actions
-
Set TempReal = (150.00 x (Real(TempInteger)))
-
Set TempLoc3 = (TempLoc2 offset by TempReal towards (TempReal2 + 90.00) degrees)
-
Unit - Create 1 Power Cog for (Owner of PC_Caster[PC_MaxIndex]) at TempLoc3 facing Default building facing (270.0) degrees
-
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
Unit Group - Add (Last created unit) to PC_Group[PC_MaxIndex]
-
Custom script: call RemoveLocation(udg_TempLoc3)
-
Set TempLoc3 = (TempLoc2 offset by TempReal towards (TempReal2 - 90.00) degrees)
-
Unit - Create 1 Power Cog for (Owner of PC_Caster[PC_MaxIndex]) at TempLoc3 facing Default building facing (270.0) degrees
-
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
Unit Group - Add (Last created unit) to PC_Group[PC_MaxIndex]
-
Custom script: call RemoveLocation(udg_TempLoc3)
-
-
-
-
Custom script: call RemoveLocation(udg_TempLoc)
-
Custom script: call RemoveLocation(udg_TempLoc2)
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PC_MaxIndex Equal to (==) 1
-
-
Then - Actions
-
Trigger - Turn on PC Loop <gen>
-
-
Else - Actions
-
-
-
-