• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 13
Joined
Nov 4, 2006
Messages
1,239
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