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
 
(Changes to formatting and corrections on spelling, templates, and non-existant flags.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
+
{{Flag
Can be set to 'yes' or 'no' and specifies if this BuildingType can be garrisoned by InfantryTypes that have Occupier=yes set. For the logic to work, you should also set two weapons on the structure - the Primary= weapon is the weapon used when Allied soldiers have occupied the structure, and the Secondary= weapon is the weapon used when Soviet soldiers have garrisoned it.
+
|values={{Values|bool}}
 +
|default=no
 +
|types={{Categ|BuildingTypes}}
 +
|ra2=yes
 +
|yr=yes
 +
}}
 +
 
 +
This flag determines whether or not a [[BuildingTypes|building]] can be garrisoned by [[InfantryTypes|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 {{f|MaxNumberOccupants|link}} set to a positive integer greater than 0.
 +
 
 +
==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.
 +
 
 +
==See also==
 +
* {{f|MaxNumberOccupants|link}}
 +
* {{f|CanOccupyFire|link}}
 +
* {{f|OccupyPip|link}}

Latest revision as of 22:53, 29 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 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.

See also