View Full Version : Bounding a unit to a road/railroad?


Shiggs713
Mar 02, 2008, 08:48 AM
Hello, I've been tinkering with some ideas for this civil war mod, and I wanted to create a unit (Train) that would be bound to railroads. Perhaps even further than that, in saying to enter a city it would have to have a railyard or station.... I would imagine its done in python, but just wondering if anything like this has been done, or how hard it would be?

thanks,

Shiggs

frekk
Mar 02, 2008, 01:22 PM
I'm pretty sure I saw this somewhere, probably in the modcomps forum ... maybe as a python snippet someone posted in the SDK/Python forum in the snippets thread

Mattimeo
Mar 02, 2008, 01:23 PM
To be truly effective, it would need to move really fast on railroads and you'd have to be able to build railroads in enemy territory/use enemy railroads.

I'm assuming you're using the train as a transport.

Lord Tirian
Mar 02, 2008, 02:20 PM
I'm pretty sure I saw this somewhere, probably in the modcomps forum ... maybe as a python snippet someone posted in the SDK/Python forum in the snippets thread
I also think I've seen something like that lately (about 2-3 weeks ago), but I cannot find it again as well. IIRC, it was a small SDK component with a simple XML tag - and an archer as example (and yes, I also want to find it again).

Cheers, LT.

Shqype
Mar 02, 2008, 02:29 PM
Zebra9's zRoutes for Python:

http://forums.civfanatics.com/showthread.php?t=255718

Shiggs713
Mar 02, 2008, 02:33 PM
thanks everyone :)

SimonB1er
Mar 03, 2008, 05:56 PM
http://forums.civfanatics.com/showthread.php?t=263759

I think that should also be useful!!:)