HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

set junkyard dog

01-18-2003, 06:15 PM#1
Guest
I'm making a map for Warcraft 3 that needs all of the units from a unit group to fly around to random places. I was wondering if there was an AI script like set junkyard dog (roam around)(from starcraft) so I can make the units fly around at random. I've tried using

--Every .5 seconds

--Unit - Order (Random Unit from (units of type flying sheep)) Move to (random point in (Playable Map Area))

but that leaves some of the sheep sitting still. Using the

--For Each Integer A (from 1 to 150), do Order (Random Unit from (units of type flying sheep)) Move to (random point in (Playable Map Area))

gives the map massive slowdown.
Can anyone help?
01-18-2003, 10:53 PM#2
AIAndy
You can set units to wander around in WE.
If you do not want to use that, I'd suggest you put the units from the group in a unit array instead. Then you can easily go through all the units and order each to a random point. Then you won't have to do it that often and thus the slowdown is reduced.
01-21-2003, 03:19 AM#3
Guest
if you want to do it with triggers, i can't help you, but if you want to do it the lazy way you can always just give it the "wander" ability, like most of the animals have already.