HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Best way to make waypoints?

12-29-2003, 06:50 PM#1
TheZaCrew
A TD or an AoS you have a certain path for your units to follow any ideas to make this in the best/easiest way?

I know the most used where you use: unit enters left1 move unit to left2.
Is it possible to make something with regions in an array variable:
Event - Every 0.01 sec.
Action - If regions[Randow, 1 to 10] contains random unit from unit groupe, then move unit to regions[number containing unit + 1]

Please post all your ideas, thx.
12-29-2003, 07:26 PM#2
x(Lunchbox)x
TD:
Pathing Blockers. If your paths are simple enough, place pathing blockers all the way to the end and just
Code:
Event - Unit enters region X
Conditions - Unit belongs to player 9
Actions - Pick all unit belonging to player 9 and do issue order targeting point region Z

Thats pretty simple, and you can't really have air rounds with that, because your builder needs to be flying so he can get around everywhere, and that would make flying units.

AoS:

Code:
Event - Unit enters region X
Conditions - Unit belongs to player 9
Actions - Pick all units belonging to player 9 in region X and do issue order targeting point region Y

Code:
Event - Unit enters region Y
Conditions - Unit belongs to player 9
Actions - Pick all units belonging to player 9 in region Y and do issue order targeting point region Z

Thats basic. I really don't see the need to do anything more complicated then that.
12-29-2003, 07:27 PM#3
Dead-Inside
Well... 1. Your idea is pretty stupid, altho I do like the sending to NumberHere +1 region. What you could do is use offsets, saves your region count.

Other then that, no, why would you need anything "better"?
12-29-2003, 08:40 PM#4
TheZaCrew
Just because I think it is fun to find the easiest way to do stuff.

Also thanks for the help. You know if it is possible to give a building more then one rallypoint like using shift + rightclick with triggers?
12-29-2003, 11:26 PM#5
Dead-Inside
No, buildings can only have one rallypoint. Hardcoded. It's not a waypoint system.
12-30-2003, 12:50 AM#6
Saik
Wrong. It IS possible to shift-click your rallypoints similar to shift-clicking waypoints, and any units produced will automatically follow the order of your waypoints/rallypoints when produced. Try it. It IS a waypoint system.
12-30-2003, 10:05 AM#7
TheZaCrew
Yes but not with triggers though :nono: