I've been trying to solve this problem for a while now. Even after posting this problem down at war3sear.ch all the solutions offerred did not work. My problem may sound simple but it is infinitely more annoying than it looks.
You see I have a map perfectly split in half. One side is completely full of destructibles (absolutely every space filled), the other is relatively free of obstructions.
I want to be able to create a trigger so that when I build a waygate on the side free of destructibles, a random point will be selected within the side full of destructibles and the destructibles at that point will be destroyed, then a new waygate will be created there and will link back to the built waygate. Simple as that.
The real problem here is that I can't get the resulting two waygates to be linked together via 'set waygate destination'.
This approach will work but WON'T link the gates together:
Waygate Trigger
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Triggering unit)) Equal to Waygate
Actions
Set WayGatePoint = (Random point in WayGateRegion <gen>)
Destructible - Pick every destructible within 500.00 of WayGatePoint and do (Destructible - Kill (Picked destructible))
Unit - Create 1 Waygate for (Owner of (Triggering unit)) at WayGatePoint facing Default building facing degrees
Unit Group - Pick every unit in (Units within 50.00 of WayGatePoint matching ((Unit-type of (Picked unit)) Equal to Waygate)) and do (Neutral Building - Set (Triggering unit) destination to (Position of (Picked unit)))
A variable 'WayGatePoint' and a region 'WayGateRegion' are used.
Can anyone help me out here?
You see I have a map perfectly split in half. One side is completely full of destructibles (absolutely every space filled), the other is relatively free of obstructions.
I want to be able to create a trigger so that when I build a waygate on the side free of destructibles, a random point will be selected within the side full of destructibles and the destructibles at that point will be destroyed, then a new waygate will be created there and will link back to the built waygate. Simple as that.
The real problem here is that I can't get the resulting two waygates to be linked together via 'set waygate destination'.
This approach will work but WON'T link the gates together:
Waygate Trigger
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Triggering unit)) Equal to Waygate
Actions
Set WayGatePoint = (Random point in WayGateRegion <gen>)
Destructible - Pick every destructible within 500.00 of WayGatePoint and do (Destructible - Kill (Picked destructible))
Unit - Create 1 Waygate for (Owner of (Triggering unit)) at WayGatePoint facing Default building facing degrees
Unit Group - Pick every unit in (Units within 50.00 of WayGatePoint matching ((Unit-type of (Picked unit)) Equal to Waygate)) and do (Neutral Building - Set (Triggering unit) destination to (Position of (Picked unit)))
A variable 'WayGatePoint' and a region 'WayGateRegion' are used.
Can anyone help me out here?


