IsTrain: Difference between revisions
Updated with new Template |
Its rewritten now |
||
Line 14: | Line 14: | ||
|yr=yes | |yr=yes | ||
|rp=yes | |rp=yes | ||
}}<br /> | |||
Can be set to 'yes' or 'no' and determines whether or not this VehicleType should be considered a Train. This causes a unit to have several special behaviours in order to act like a train. It causes the unit to be immune to capture by a [[VehicleThief]] type unit as player control can cause the unit to do things that break the illusion of train like behavior. It also prevents the unit turning to a facing that is more than one increment in either direction to the one it is facing per cell travelled and can only turn while moving to an adjacent cell. This prevents it turning back on itself as normal units can but as a real train could not. IsTrain also has the effect of causing any unit in a cell the IsTrain unit is moving into to be destroyed using the warhead specified by [[C4Warhead]]. This flag also determines what units leave a create when destroyed if [[TrainCrate]] flag is set to 'yes' in a map file. The train logic works best when the unit is restricted to a specific terrain type that is laid in one cell "Tracks" for the unit to follow using [[MovementRestrictedTo]]. The terrain type most commonly used for this is RailRoad and is placed using a dedicated overlay set or terrain tiles. | |||
Can be set to 'yes' or 'no' and determines whether or not this VehicleType should be considered a Train |
Revision as of 12:54, 23 February 2008
Flag: | IsTrain |
File(s): | Rules(md).ini |
Values: | Booleans |
Default: | no |
Applicable to: | VehicleTypes |
Can be set to 'yes' or 'no' and determines whether or not this VehicleType should be considered a Train. This causes a unit to have several special behaviours in order to act like a train. It causes the unit to be immune to capture by a VehicleThief type unit as player control can cause the unit to do things that break the illusion of train like behavior. It also prevents the unit turning to a facing that is more than one increment in either direction to the one it is facing per cell travelled and can only turn while moving to an adjacent cell. This prevents it turning back on itself as normal units can but as a real train could not. IsTrain also has the effect of causing any unit in a cell the IsTrain unit is moving into to be destroyed using the warhead specified by C4Warhead. This flag also determines what units leave a create when destroyed if TrainCrate flag is set to 'yes' in a map file. The train logic works best when the unit is restricted to a specific terrain type that is laid in one cell "Tracks" for the unit to follow using MovementRestrictedTo. The terrain type most commonly used for this is RailRoad and is placed using a dedicated overlay set or terrain tiles.