DavisProg
  • DavisProg
  • 62% (Friendly)
  • Private Topic Starter
14 years ago
Hi again,

I am still using General's World Builder.
I would like to know if it is possible to garrison a train car by scripting map.ini?
And how to script so that the unit is able to shoot from a garrisoned train when the train is moving? Please let me know whether it can be scripted or not. If can, please help with some scripting. Thanks a lot!
Sponsor
Annihilationz
14 years ago
It's possible, but they might fire from odd places.

If can, please help with some scripting. Thanks a lot!


That depends largely on which train you want to modify and whether you want the engine and/or the carriages to work like that too.
DavisProg
  • DavisProg
  • 62% (Friendly)
  • Private Topic Starter
14 years ago

It's possible, but they might fire from odd places.

Annihilationz wrote:



Fire while the train is moving. I would like the infantry to garrison the "Train Cab".
Any suggestion or code is appriciated. Thanks
Annihilationzh
14 years ago
Find Object TrainCab in CivilianUnit.ini.

Scroll down until you find a commented out GarrisonContain module. Remove the semi-colons (;) and add this line just before the End:

PassengersAllowedToFire = Yes

EDIT: Bah! Map.ini! Wasn't paying attention.

Same as above, but copy and paste the module into a Map.ini then use an AddModule.

Here's a map.ini tutorial if you don't know how to use an AddModule:
http://www.cnclabs.com/forums/default.aspx?g=posts&t=10478 
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.