• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How can I order a unit to wander in a region?

Status
Not open for further replies.
Level 2
Joined
Mar 1, 2013
Messages
10
Well, I'm gonna take a wild guess here :p
If you're using GUI, you might wanna try this out:
Start by making a region or any size, and put the unit inside the region you want for to wander.
then, Create a simple trigger -
Events : Time - every (5.00) seconds of game time (or any amount of time you see fit)
Action : Unit - Order (unit) to Move to (random point in region(your region))

now, every few seconds of game time, the unit will select a random point in the region and move towards it. If the region is big, you might want to make the event time a tad longer too. Experiment with this until you are satisfied but that's a way to make a unit wander (in the case if the unit has no other purpose than to wander.)

If I'm not mistaken, there's also a passive unit ability named "wander" or something, it's the ability that critters in the game make use of to wander. but If you want the unit to wander in a controlled area, I suggest you keep to this trigger :)

I'll attach an image for a bit more clarity.

Good luck and hope I could have been of service ^_^
 

Attachments

  • help 1.JPG
    help 1.JPG
    62.3 KB · Views: 128
  • help 2.JPG
    help 2.JPG
    40.9 KB · Views: 125
Last edited:
Level 2
Joined
Mar 1, 2013
Messages
10
Ahhh I am so unfamiliar with this term of "leaking" :c Guess I'll have to run through that there guide then ^_^"
 
Status
Not open for further replies.
Top