Warcraft III resources & community, 2003–2006 · archived

Help with getting random units to patrol

5 posts
#1

Help with getting random units to patrol

Im trying to get a neutral passive unit to patrol the map from one side of the other. What command do i need for this, would i need to make the unit move from one part to the other, then create an action where the unit moves back to its original position and then place it within a repeat/while loop via custom script or is there another way?

i.e "while - unit is alive
do - unit moves to region X instantly;
unit moves to region Y instantly;"
#2
cant you just use patrol?
#3
No because its a neutral passive unit, which i dont want anyone to be able to command in game. When the map initialises i want the unit to patrol from one side of the map to the other. The problem is repeating the command throughout the entire game. This is just for effect purposes.
#4
Issue Order "Unit" Patrol to "Region"??? isn't it like that?
#5
ah nm, got it, thanks.