ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

IsTrain

From ModEnc
Revision as of 11:11, 23 February 2008 by Gordon-creAtive (talk | contribs) (Updated with new Template)
Jump to: navigation, search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: IsTrain
File(s): Rules(md).ini
Values: Booleans
Default: no
Applicable to: VehicleTypes


Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: IsTrain
File(s): rules(md).ini
Values: ERROR – No value types set! Please edit this page and fix the Flag template!

This entry was copied from DeeZire's Red Alert 2 and Yuris Revenge INI Editing Guide for the sake of completeness. As it is not our intention to rip off DeeZire's work, this article is subject to a re-write and update with the latest community knowledge.

For further information, please read Inclusion of The Guide.




Can be set to 'yes' or 'no' and determines whether or not this VehicleType should be considered a Train which is residual from Tiberian Sun. This forms a special case only for units with the drive Locomotor= and setting this to 'yes' forces the unit to move and remain only on an OverlayType with Land=Railroad set and use the rules for 'tracked' movement rather than 'wheeled'. Setting the TrainCrate= flag to 'yes' in your map file will also result in this unit leaving a crate when it is destroyed. This also prevents the unit from 'turning' to move in a new direction - it will move in the direction faced, along the track, until it reaches it's new designated destination, provided it is on an overlay tile which has Land=Railroad set. NOTE: use of this tag on a standard VehicleType renders the unit able to instantly destroy any other object it comes into contact with - this property is residual from Tiberian Sun where trains would destroy anything that got in their path when driving on a railroad - the result is however that the unit invariably destroys the Factory= from which it is produced.