Jump to content

MovementRestrictedTo: Difference between revisions

From ModEnc²
en>TAK02
No edit summary
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
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}}
==Note==
Trying to force two or more values will result in this logic breaking and not working for the unit.
*[[VehicleTypes]] that can fly, can still go to prohibited areas. But such [[VehicleTypes]] cannot land without the {{f|BalloonHover|yes|link}} tag.
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.
 
=={{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.<br>
*When I actually tried using this tag, only [[VehicleTypes]] was available.<br>
*Granting this tag to a [[VehicleTypes]] with the {{f|Naval|yes|link}} tag will prevent it from being produced from the Ship yard.<br>
*Sometimes if [[TechnoTypes]] with this tag can move to other areas. In addition to the specific area under the tag  [[MovementRestrictedTo]] The fog in that area will not be revealed, as if those [[TechnoType]] have {{f|Sight|0|link}}.<br>
 
[[Category:INI Flags]]
[[Category:INI Flags]]
[[Category:rules(md).ini Flags]]
[[Category:rules(md).ini Flags]]

Latest revision as of 17:38, 2 July 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
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...

Note

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.