Posted by: DavisProg - Sunday, August 14, 2011 2:43:23 AM
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!

Posted by: Annihilationz - Sunday, August 14, 2011 4:43:42 AM
It's possible, but they might fire from odd places. [quote]If can, please help with some scripting. Thanks a lot![/quote] 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.

Posted by: DavisProg - Monday, August 15, 2011 6:14:45 PM
[quote=Annihilationz]It's possible, but they might fire from odd places.[/quote] Fire while the train is moving. I would like the infantry to garrison the "Train Cab". Any suggestion or code is appriciated. Thanks

Posted by: Annihilationzh - Tuesday, August 16, 2011 2:32:36 AM
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: [code]PassengersAllowedToFire = Yes[/code] 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