• 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 to make a locomotive follow on a track?

Status
Not open for further replies.
Level 8
Joined
Oct 31, 2010
Messages
238
Hello people, I'm back on Hive!
Now I am on a project with a friend to create an RPG.
As the title suggest, is there anyway to make a unit (locomotive in this case) follow on its track perfectly, without creating a trigger for every region?
It would be something like this: Roller Coaster, except that I have already placed the tracks.
Thanks in advanced for any help!
 
Level 7
Joined
Jan 28, 2012
Messages
266
well, if you have no water/ water units it is really easy, you just have to enable pathing of type water along the entire track.
  • Environment - Set terrain pathing at (some loc)) of type Floatability to On
there might be also be way using a ramp like invisible platform rather then making a lengthy trigger.

you could make a movement trigger for the unit that moves the train forward,
but checks the terrain type, and if it isn't of type "railroad" it looks for terrain of type "railroad" in a -45 to 45 sweep,
and then turns the train to head the direction it finds "railroad".
 
Status
Not open for further replies.
Top