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

Railroad system

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,241
Not actually done it, but I could if I wanted to.

I would make the track a unit, then I'd use an array point (or x/y, both works) variable and store detected locations of the track. Then check for another track from the last detected track.
You'd also have to take model size and facing into account, as long as your track doesn't have some weird shape (non linear actually) it wont be that difficult.
 
Someone needs to "build" the road first. The train needs to know where to go next.
This might happen also via triggers only. It's not needed to happen physicaly at the game, with units/buildings and effects. But it looks better of course.

The problem is that it has a weird shape and curves.
Is the problem about visuals?
 

Ardenian

A

Ardenian

As everyone is talking about an actual railroad, I would like to bring up an alternate way.

Dependent on your needs, you could also use a static model, like a plane and animated textures, or with different animations.
You would manipulate a unit's facing then instead of x/y, which is, in my opinion, easier, isn't it ?

The main problem with this solution is to make the static model look good.
 
Status
Not open for further replies.
Top