ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
MovementRestrictedTo: Difference between revisions
Jump to navigation
Jump to search
Split off the Movement page |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{flag|name=MovementRestrictedTo|files=rules(md).ini|values=special strings | {{flag|name=MovementRestrictedTo|files=rules(md).ini|values=special strings|default=None|types=[[InfantryTypes]], [[VehicleTypes]], [[AircraftTypes]], [[BuildingTypes]] (to the same extent as [[Locomotor]]s do) |ts=yes|fs=yes|ets=yes|ra2=yes|yr=yes|rp=yes}} | ||
Some units are restricted to certain terrains, say trains are restricted to railroad, ships are restricted to water, and some [[spawn]]ed aircraft are restricted to water(it affects only their landing). You can restrict other units to some kind of terrain, say to roads only if you so desired. To do so, use <tt>MovementRestrictedTo=</tt> with one of [[SpeedType#Terrain_Types|terrain types]] - Clear, Rough, Road, Water, [[Tiberium]], Rock, Beach... | Some units are restricted to certain terrains, say trains are restricted to railroad, ships are restricted to water, and some [[spawn]]ed aircraft are restricted to water(it affects only their landing). You can restrict other units to some kind of terrain, say to roads only if you so desired. To do so, use <tt>MovementRestrictedTo=</tt> with one of [[SpeedType#Terrain_Types|terrain types]] - Clear, Rough, Road, Water, [[Tiberium]], Rock, Beach... | ||
{{Bugs}} | |||
Trying to force two or more values will result in this logic breaking and not working for the unit. | |||
Example: "<tt>MovementRestrictedTo=Clear,Rough</tt>", "<tt>MovementRestrictedTo=Clear, Rough</tt>" or "<tt>MovementRestrictedTo=Clear Rough</tt>" will result in the unit just ignoring the limitation. | |||
[[Category:INI Flags]] | [[Category:INI Flags]] | ||
[[Category:rules(md).ini Flags]] | [[Category:rules(md).ini Flags]] |
Latest revision as of 12:57, 4 August 2021
Flag: | MovementRestrictedTo |
File(s): | rules(md).ini |
Values: | special strings |
Default: | None |
Applicable to: | InfantryTypes, VehicleTypes, AircraftTypes, BuildingTypes (to the same extent as Locomotors do) |
Some units are restricted to certain terrains, say trains are restricted to railroad, ships are restricted to water, and some spawned aircraft are restricted to water(it affects only their landing). You can restrict other units to some kind of terrain, say to roads only if you so desired. To do so, use MovementRestrictedTo= with one of terrain types - Clear, Rough, Road, Water, Tiberium, Rock, Beach...
Bugs/Side-Effects/Unexpected Limitations
Trying to force two or more values will result in this logic breaking and not working for the unit. Example: "MovementRestrictedTo=Clear,Rough", "MovementRestrictedTo=Clear, Rough" or "MovementRestrictedTo=Clear Rough" will result in the unit just ignoring the limitation.