Jump to content

WeaponsFactory: Difference between revisions

From ModEnc²
en>Testid123
mNo edit summary
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(5 intermediate revisions by 2 users not shown)
Line 11: Line 11:
|rp=yes
|rp=yes
}}
}}
{{f|WeaponsFactory|yes|link}} is a value attached to all ground vehicle manufacturing facilities. This tells the game to have the vehicle exit from a place inside the building and come out of a door, instead of just spawning outside the factory. If you are making a naval factory (RA2/YR Only) with {{f|Naval|yes|link}} you CANNOT have this value present, as this will cause a multitude of errors.<br>
The presence of <tt>WeaponsFactory=yes</tt> on a [[BuildingTypes|building]] turns it into a 'War Factory' with specific logic attached, and includes it in building ratio calculations: see [[WarRatio]].
Adding the tag '''WeaponsFactory=yes''' to [[BuildingTypes]] that has another tag before it. It will give different effects.<br>
 
[[BuildingTypes]] with tag{{f|Cloning|yes|liink}}+'''WeaponsFactory=yes''' =No cloning[[InfantryTypes]]<br>
One feature of such a building, is that it produces [[VehicleTypes]], which exit from a specific cell inside the building (based on foundation shape), either through a door for ground units, or through the roof for [[Jumpjet]] vehicles. Vehicles with {{f|Naval|yes|link}} can't be produced here, nor can [[InfantryTypes|infantry]].
[[BuildingTypes]] with tag{{f|Factory|InfantryType|link}}+'''WeaponsFactory=yes''' =No cloning[[InfantryTypes]]+[[InfantryTypes]] Will not follow the '''waypoint''' that has been established From '''Barracks'''<br>
 
[[BuildingTypes]] with tag{{f|DockUnload|yes|link}}+{{f|Refinery|yes|link}}+'''WeaponsFactory=yes''' ='''Vehicle Miner''' does not move out of '''Ore Refinery''' once docked.<br>
=={{bugs}}==
[[BuildingTypes]] with tag{{f|Hospital|yes|link}}+'''WeaponsFactory=yes''' =[[InfantryTypes]] does not moving out of '''Hospital''' Once treated.<br>
Adding <tt>WeaponsFactory=yes</tt> to other production buildings, or buildings with [[Dock|docks]] may cause crashing, or break functionality.
 
==See Also==
[[Naval]]
 
[[ConstructionYard]]
 
[[RoofDeployingAnim]]

Latest revision as of 18:05, 2 July 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: WeaponsFactory
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: BuildingTypes


The presence of WeaponsFactory=yes on a building turns it into a 'War Factory' with specific logic attached, and includes it in building ratio calculations: see WarRatio.

One feature of such a building, is that it produces VehicleTypes, which exit from a specific cell inside the building (based on foundation shape), either through a door for ground units, or through the roof for Jumpjet vehicles. Vehicles with Naval=yes can't be produced here, nor can infantry.

Bugs/Side-Effects/Unexpected Limitations

Adding WeaponsFactory=yes to other production buildings, or buildings with docks may cause crashing, or break functionality.

See Also

Naval

ConstructionYard

RoofDeployingAnim