HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Caravan, Anybody?

08-29-2006, 07:19 PM#1
illidan92
Okay i'm trying to make a caravan with guards guarding it for my new map, I want it to be like the system in the campaign but it's a little confusing. If you don't know which one i'm talking about I attached the map to this thread.

Blizzard made like 70 regions and used a variable and used array to put all the regions into it. My map is pretty small so I might just use 20-30 but the point i'm getting accross is: How can I do this in my map? Like if the guards are attacking an enemy and they get too far they all run back and catch up (like in NOTD Aftermath).
Attached Files
File type: w3xNightElfX06.w3x (409.0 KB)
08-29-2006, 07:41 PM#2
MeanMachine
Loop through every of your guards every second and check the distance between him and the caravan. If it's too big, order him to move to the caravan. Alternatevly, download something like Vex's Independant Summons if you want perfect results.
08-30-2006, 12:04 AM#3
illidan92
Ah ty. I'll do dat looping thing.