Thread: map help
View Single Post
Old 03-29-2006, 01:47 PM   #8 (permalink)
webby
Junior Member
 
Join Date: Mar 2006
Posts: 20
Default

HOW TO ADD A TRAIN

---------------------------------------------------------
Okay the obvious first step is to lay down your tracks

you have your tracks layed down and you decide you would like a train to follow,
click the waypoint tool, click at where you want the start position and drag and drag and keep dragging all the way around your traintrack, use like 3/4 waypoints at corners for a smooth turn. Okay now you have the waypoint layed you have a path for the train to follow, add a train but DO NOT add a _CINE train, add a train and place it outside the border, you do not need to do any scripting for the train so it will just automatically sort itself out at the start of game.

Okay lets add a station,
decide where you want the train to stop (the station) and click the waypoint, and at the end of its name type Station (note the capital 'S'), e.g. waypoint 1 Station.

You can also add a ping pong thing were the train moves back for a short while then carries on, just add Ping Pong to the end of the name ; note the capitals P's.

--------------------------------------------------------------------------

lets a tunnel/bridge

To add a tunnel bridge there most be no other waypoint between the start of the tunnel/bridge and the end of the tunnel/bridge ; so it is one straight arrow. the name of the waypoint before the tunnel/bridge should be waypoint # Tunnel (note the capital 'T', # = what number it is) and do the same for the waypoint after the train/tunnel.
This basicly tells the train to not change level on the terrain so it wont go under water or above hills.

Making a train garrisonable

------------------------------------------------------------------------------------

put this .INI file into your map folder,

Object TrainCar03

ReplaceModule ModuleTag_02

Body = ActiveBody ModuleTag_02_Override

MaxHealth = 10000.0

InitialHealth = 10000.0

End

End



AddModule ModuleTag_03_Override

Behavior = GarrisonContain ModuleTag_03

ContainMax = 10

AllowInsideKindOf = INFANTRY VEHICLE

EnterSound = GarrisonEnter

ExitSound = GarrisonExit

DamagePercentToUnits = 50%

MobileGarrison = Yes

End

End

End



Object TrainCab

ReplaceModule ModuleTag_02

Body = ActiveBody ModuleTag_02_Override

MaxHealth = 10000.0

InitialHealth = 10000.0

End

End



AddModule ModuleTag_03_Override

Behavior = GarrisonContain ModuleTag_03

ContainMax = 10

EnterSound = GarrisonEnter

ExitSound = GarrisonExit

DamagePercentToUnits = 50%

MobileGarrison = Yes

End

End

End


If you want the computer to use the train then you will need some scripting but I won't go into that.

Hoped this helped you.
webby is offline   Reply With Quote