Rail-Only Unit

sspellweaver

Chieftain
Joined
Apr 20, 2010
Messages
7
Hi there,

I did a search of the site but couldn't find any solution to my problem:

I want to have a train unit that runs only on tiles with rail and no others. I can get a pre-req "rail" function for building it, and I know about FeaturePassable - but how do I make a unit that can *only* travel on a single kind of feature?

Cheers
 
I you know your Python you could use the cannotMove callback in CvGameUtils to prohibit movement on non-rail tiles.
 
Top Bottom