• 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.

A terrain (ground texture)-following unit

Status
Not open for further replies.
Level 2
Joined
Jul 24, 2008
Messages
16
Hey guys,
Is it possible to make a unit follow a certain type of terrain? Or would I just be better off making regions? I want to do this because I want to make a trading unit for one of my new maps and I want it to follow a terrain path. Is it possible? Ideas welcome! Thanks in advance! :thumbs_up:
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
you could use a texture which is not walkable around your path, then then unit can only follow the path you set, if you can't use that i would take an array of regions

  • Events
    • Unit - a Unit enters region[integer]
  • Condition
  • Actions
    • set integer = integer +1
    • Unit - order triggering Unit to move to region[integer]
just make your regions being variables with an array, [integer] is an integer variable
 
Status
Not open for further replies.
Top