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

Difference between revisions of "Adjacent"

From ModEnc
Jump to: navigation, search
m
m (Add AIBaseSpacing info.)
 
Line 19: Line 19:
  
 
A building with {{f|Adjacent|1}} set can be placed both 1 cell North-East and 1 cell North-West of an existing building at the same time (i.e. diagonally).
 
A building with {{f|Adjacent|1}} set can be placed both 1 cell North-East and 1 cell North-West of an existing building at the same time (i.e. diagonally).
 +
 +
For AI building placements, [[AIBaseSpacing]] is used instead of {{f|Adjacent}}.
  
 
=See also=
 
=See also=
 
*[[BaseNormal]]
 
*[[BaseNormal]]
 
*[[EligibileForAllyBuilding]]
 
*[[EligibileForAllyBuilding]]

Latest revision as of 12:12, 18 January 2023

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: Adjacent
File(s): Rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Default: 3
Applicable to: BuildingTypes


After constructing a building in-game you are only allowed to place it near your existing structures.

Adjacent specifies the maximum number of cells away from one of your existing buildings (that does not have BaseNormal=no set) that you may place the new building. Adjacent=0 means the new building must be placed in contact with an existing building - there must be no gap. Adjacent=1 means there can be at most a 1 cell gap between an existing building and the new building. And so on.

A building with Adjacent=1 set can be placed both 1 cell North-East and 1 cell North-West of an existing building at the same time (i.e. diagonally).

For AI building placements, AIBaseSpacing is used instead of Adjacent.

See also