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

CanBeOccupied

From ModEnc
Revision as of 06:03, 11 August 2024 by Testid123 (talk | contribs)
Jump to navigation Jump to search
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 the neutral house can be garrisoned by infantry controlled by any player, but never by multiple players at once.

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

Red Alert 2

In non-expanded Red Alert 2, CanBeOccupied was intended to be used for civilian structures only. If a building with CanBeOccupied=yes is constructed by a player, it will revert to being owned by the neutral house. If that building's Art(md).ini entry also has a Buildup animation, the AI of the neutral house will sell the building immediately upon construction.

...tags that will give you benefits Will be completely neutral...

(Yuri's Revenge) This kind of behavior also happened to the Soviet Battle Bunker, If Soviet Battle Bunker had TechLevel=-1 and AI built it.

Yuri's Revenge

BuildingTypes with the tag CanBeOccupied=yes will not be able to attack Even if they have weapons.

See also