HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Building a Train-Like Thing

04-21-2004, 02:29 AM#1
Syco
I'm trying to build a train, or something close enough.
Units will have to be able to stand on it and go from car to car.
The problem is first that I cannot think of a way that the train moves, and moves what is on it.
Doodads cant' work, because there's no "nature" of which to move them.
Units can't work, because other units cannot physically ride "on top" of them.
Terrain can't work because this has to be able to traverse terrain.
Any ideas, oh mighty masters of triggering/jass?
-Syco
04-21-2004, 02:59 AM#2
Ligature
Sick, man.

I think this might be one of those things that can't be done properly. For instance, when you order a unit that's standing on top of the train to move somewhere, it will order him to the point on the map, not the point on the train... Unless you worked around that by order catching and ordering units to follow the nearest train unit to the target point... Meanwhile I guess you could have an invisible platform raised off the ground over the entire train track, and have pathing blockers move along the track with the train so you couldn't leave it. Then write a periodic trigger that moves instantly all units in the track region a certain amount along the track... ... ... achk. Good luck man.
04-21-2004, 03:15 AM#3
Syco
Yeah, the problem is that the units have to be able to move freely about the train. Even with all those nifty tips and tricks...
Unless the player orders (had to be) less than a (let's say) 2 second walk, they wouldn't make it on time before the train automatically (every 2 seconds) changed their position orders or whatever.
Furthermore, positions moving forward would have to be very far forward, as that which is directly in front would very soon be directly below. Hence the moving platforms, as opposed to whatever else.
Ironic how blizzard set it up so you can mess with height, though.
-Syco
04-21-2004, 08:12 PM#4
Shark
first: what will you use for the train ???
you can use the RoC version of the steam tank for the locomotive, scaling value about...4-5 ...
good luck with that train thing man... it will require some master triggering and innovation, lots of it....
04-21-2004, 11:11 PM#5
BBDino
It really doesnt seem practical, in fact your best bet for getting it to work would be too have the terrain move around the train! (all doodads units, flat terrain, units with terrain tiles as models, Have the train a ramp that doesnt actually move etc) the triggeres needed to make them all move would be nightmarish, and in the end it wouldnt really be that great an effect, but hey, if you have 100 hours of free tiem ahead of you, you better get crackign now!
04-22-2004, 12:28 AM#6
linkmaster23
You can base your train off units, just make them walkable. Or something like that... some wierd pathing. Anyways, your problem would be, making the train look like its moving.
04-22-2004, 12:54 AM#7
ThyFlame
Neh. I'd just as soon use flying units with a low Z and prevent them from going off to the side and IF/THENs to detect whether or not it 'didn't make it'.
04-22-2004, 07:00 PM#8
Ligature
I wasn't saying to have the train-moving trigger order the units to move, I meant have it move (unit) instantly... does that screw up the unit's orders? I've never tested that...
04-24-2004, 05:16 AM#9
CyborgDragon
Easieast way would make the carts seperate units and have ur units load in em, to switch the carts have an ability called Switch Left(requires triggers, sends to the train to the left) or Switch Right.