Open main menu

Documentation/Engine/Units/company def

< Documentation‎ | Engine‎ | Units
Revision as of 03:52, 22 June 2017 by Smarty (talk | contribs) (Created page with "The '''company_def''' unit class is used to assign a prefab to a company_permanent unit. Units of this type are usually define...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

The company_def unit class is used to assign a prefab to a company_permanent unit. Units of this type are usually defined in /def/company/<company_name>/editor/<city_name>.sii.

Attributes

Name Type Default Value Description
city token The tokenized name of the city in which the prefab is located. In the case of city.san_francisc, this would appear as city: san_francisc
prefab token The tokenized name of the prefab to be linked. In the case of prefab.d_port_sf, this would appear as prefab: d_port_sf

Note: This implementation requires that each depot prefab may only appear once per city.

Related Units