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
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
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... | ||
==Note== | |||
*[[VehicleTypes]] that can fly, can still go to prohibited areas. But such [[VehicleTypes]] cannot land without the {{f|BalloonHover|yes|link}} tag. | |||
{{Bugs}} | {{Bugs}} |
Revision as of 15:36, 7 January 2025
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
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) |
Warning: | There are 1 numbered subpages of this page. These pages should all be merged into this page. |
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...
Note
- VehicleTypes that can fly, can still go to prohibited areas. But such VehicleTypes cannot land without the BalloonHover=yes tag.
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.
- When I actually tried using this tag, only VehicleTypes was available.