Documentation/Engine/Units/company def

From SCS Modding Wiki
Jump to navigation Jump to search

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