Jump to content

CanBeOccupied: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
en>Vinifera7
De-DZed. Another one bites the dust.
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 neutral players 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.
 
==See also==
* {{f|MaxNumberOccupants|link}}
* {{f|CanOccupyFire|link}}
* {{f|OccupyPip|link}}

Revision as of 07:30, 4 December 2009

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
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 order for this logic to work as desired, the building will also need MaxNumberOccupants set to a positive integer greater than 0.

See also