HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Wander Not wandering

06-15-2004, 01:57 AM#1
vin_gafsel
I put like 4 wanders on a unit so it never stops walking, but after somet ime it just stops moving... never to move again no matter what. I tried making a trigger to give all units wander every x seconds but it still didnt work. Anybody know how to make it so wandering units dont stop moving forever?
06-15-2004, 02:01 AM#2
Aznwhore
if you're making it so that the unit "wanders" in a limited/fixed location, set up a few regions and trigger command them to move from one region to the other
06-15-2004, 02:15 AM#3
vin_gafsel
Quote:
Originally Posted by Aznwhore
if you're making it so that the unit "wanders" in a limited/fixed location, set up a few regions and trigger command them to move from one region to the other


It can "wander" anywhere no limits... and the thing with moving from one region to another is i have a path in the middle where people are and if a region moves to another place it gets cluddered.
06-15-2004, 02:20 AM#4
FyreDaug
Here's your solution.

Unit is issued an order with no target (or whatever the IDLE order is)

Unit - order unit to move to random point in playable map area

Or if you are fussy about memory leaks.

set a variable = random point in playable map area
unit order unit to move to <variable>
custom script: call RemoveLocation( <your variable> )
06-15-2004, 02:32 AM#5
vin_gafsel
Quote:
Originally Posted by FyreDaug
Here's your solution.

Unit is issued an order with no target (or whatever the IDLE order is)

Unit - order unit to move to random point in playable map area

Or if you are fussy about memory leaks.

set a variable = random point in playable map area
unit order unit to move to <variable>
custom script: call RemoveLocation( <your variable> )


Theres like 200 units on my map that have it.. and the only thing i see about the issued unit with no target is you have to use 1 unit and i dont wanna have to make a trigger for every unit. Any way to fix this?
06-15-2004, 02:38 AM#6
FyreDaug
So what are you saying? You have 200 units on your map with wander or you have 200 units and not all of them have wander? Either way, another way to do this would be:

Give the units with wander a fake ability, call it wander if you like. And use that same trigger, except go:

If triggering unit has <your fake ability> then do the trigger I gave you, else do nothing.

It wont lag, and its your best bet. And hey, its a trigger enhanced ability :p
06-15-2004, 02:57 AM#7
vin_gafsel
Thanks your first reply worked... I just couldn't find the right trigger option thing to get it to work :)