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

Difference between revisions of "CanBeOccupied"

From ModEnc
Jump to: navigation, search
(De-DZed. Another one bites the dust.)
Line 7: Line 7:
 
}}
 
}}
  
This flag determines whether or not a [[BuildingTypes|building]] can be garrisoned by [[InfantryTypes|infantry]] controlled by the same player. Buildings owned by neutral players can be garrisoned by infantry controlled by ''any'' player, but never by multiple players at once.
+
This flag determines whether or not a [[BuildingTypes|building]] can be garrisoned by [[InfantryTypes|infantry]] controlled by the same player. Buildings owned by neutral players can be garrisoned by infantry controlled by ''any'' player, but never by multiple players at once. In ''Red Alert 2'' without ''Yuri's Revenge'', if a structure with {{Tt|CanBeOccupied}} set to 'yes' is built by a player and placed on the map, it will be owned by the neutral player, instead of the player who built it. If said building has a {{Tt|[[BuildupAnim]]}}, the neutral player AI will sell it immedeately upon construction.
  
 
In order for this logic to work as desired, the building will also need {{f|MaxNumberOccupants|link}} set to a positive integer greater than 0.
 
In order for this logic to work as desired, the building will also need {{f|MaxNumberOccupants|link}} set to a positive integer greater than 0.

Revision as of 12:31, 25 March 2011

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: CanBeOccupied
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: BuildingTypes


This flag determines whether or not a building can be garrisoned by infantry controlled by the same player. Buildings owned by neutral players can be garrisoned by infantry controlled by any player, but never by multiple players at once. In Red Alert 2 without Yuri's Revenge, if a structure with CanBeOccupied set to 'yes' is built by a player and placed on the map, it will be owned by the neutral player, instead of the player who built it. If said building has a BuildupAnim, the neutral player AI will sell it immedeately upon construction.

In order for this logic to work as desired, the building will also need MaxNumberOccupants set to a positive integer greater than 0.

See also