- Joined
- Jul 24, 2008
- Messages
- 180
I've researched this thoroughly and I haven't found an answer. The WE allows specific pre-determined commands to be used, but I want commands based on a variable.
The above needs to be a variable.
(I realize that not all commands use a location).
-
Follow
-
Events
-
Unit - A unit Is issued an order targeting an object
-
Unit - A unit Is issued an order targeting a point
-
Unit - A unit Is issued an order with no target
-
-
Conditions
-
((Triggering unit) is in Group_Follow) Equal to True
-
-
Actions
-
Set temploc1 = (Target point of issued order)
-
Unit Group - Pick every unit in Group_Follow and do (Actions)
-
Loop - Actions
-
Set temploc2 = (temploc1 offset by Follw_Distance towards ((Facing of (Picked unit)) - 90.00) degrees)
-
Unit - Order (Load 1 of (Key (Picked unit)) in Hashtable_Follow) to Attack-Move To temploc2
-
Custom script: call RemoveLocation(udg_temploc2)
-
Set temploc2 = (temploc1 offset by Follw_Distance towards ((Facing of (Picked unit)) + 90.00) degrees)
-
Unit - Order (Load 2 of (Key (Picked unit)) in Hashtable_Follow) to Attack-Move To temploc2
-
Custom script: call RemoveLocation(udg_temploc2)
-
Set temploc2 = (temploc1 offset by Follw_Distance towards ((Facing of (Picked unit)) + 180.00) degrees)
-
Unit - Order (Load 3 of (Key (Picked unit)) in Hashtable_Follow) to Attack-Move To temploc2
-
Custom script: call RemoveLocation(udg_temploc2)
-
Set temploc2 = (temploc1 offset by (Square root(((Power(Follw_Distance, 2.00)) + (Power(Follw_Distance, 2.00))))) towards ((Facing of (Picked unit)) - 135.00) degrees)
-
Unit - Order (Load 4 of (Key (Picked unit)) in Hashtable_Follow) to Attack-Move To temploc2
-
Custom script: call RemoveLocation(udg_temploc2)
-
Set temploc2 = (temploc1 offset by (Square root(((Power(Follw_Distance, 2.00)) + (Power(Follw_Distance, 2.00))))) towards ((Facing of (Picked unit)) + 135.00) degrees)
-
Unit - Order (Load 5 of (Key (Picked unit)) in Hashtable_Follow) to Attack-Move To temploc2
-
Custom script: call RemoveLocation(udg_temploc2)
-
-
-
Custom script: call RemoveLocation(udg_temploc1)
-
-
to Attack-Move To temploc2
The above needs to be a variable.
(I realize that not all commands use a location).