CanBeOccupied: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
==Red Alert 2== | ==Red Alert 2== | ||
In non-expanded {{ra2}}, {{f|CanBeOccupied}} was intended to be used for civilian structures only. If a [[BuildingTypes|building]] with {{f|CanBeOccupied|yes}} is constructed by a player, it will revert to being owned by the neutral [[house]]. If that building's {{art}} entry also has a {{f|Buildup|link}} animation, the AI of the neutral house will sell the building immediately upon construction. | In non-expanded {{ra2}}, {{f|CanBeOccupied}} was intended to be used for civilian structures only. If a [[BuildingTypes|building]] with {{f|CanBeOccupied|yes}} is constructed by a player, it will revert to being owned by the neutral [[house]]. If that building's {{art}} entry also has a {{f|Buildup|link}} animation, the AI of the neutral house will sell the building immediately upon construction.<br> | ||
*The {{f|Unsellable|yes|Link}} tag cannot stop this behavior. | *The {{f|Unsellable|yes|Link}} tag cannot stop this behavior. | ||
*The [[FreeUnit]] tag ;No [[VehicleTypes]] will spawn beside it This [[BuildingTypes]] | *The [[FreeUnit]] tag ;No [[VehicleTypes]] will spawn beside it This [[BuildingTypes]] | ||
Line 20: | Line 19: | ||
*The {{f|CloakGenerator|yes|Link}} tag ;masks your visibility( be neutral). | *The {{f|CloakGenerator|yes|Link}} tag ;masks your visibility( be neutral). | ||
<b>...tags that will give you benefits Will be completely neutral...</b> | <b>...tags that will give you benefits Will be completely neutral...</b> | ||
==Yuri's Revenge== | ==Yuri's Revenge== | ||
[[BuildingTypes]] with the tag <b>CanBeOccupied=yes</b> will not be able to attack Even if they have weapons. | [[BuildingTypes]] with the tag <b>CanBeOccupied=yes</b> will not be able to attack Even if they have weapons.<br> | ||
This kind of behavior also happened to the <b>Soviet Battle Bunker</b>, If <b>Soviet Battle Bunker</b> had {{f|TechLevel|-1|Link}} and AI built it. | |||
==See also== | ==See also== |
Revision as of 08:18, 11 August 2024
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.
- The Unsellable=yes tag cannot stop this behavior.
- The FreeUnit tag ;No VehicleTypes will spawn beside it This BuildingTypes
- The Crewed=yes tag is not working.
- The GapGenerator=yes tag ;masks your visibility Because the fog of war will be neutral.
- The CloakGenerator=yes tag ;masks your visibility( be neutral).
...tags that will give you benefits Will be completely neutral...
Yuri's Revenge
BuildingTypes with the tag CanBeOccupied=yes will not be able to attack Even if they have weapons.
This kind of behavior also happened to the Soviet Battle Bunker, If Soviet Battle Bunker had TechLevel=-1 and AI built it.