Changes

Jump to navigation Jump to search

Documentation/Engine/Units/accessory truck data

21 bytes added, 15:56, 30 May 2017
Attributes: Changed arrays to C++ template format as requested
|-
|'''info'''
|string_arrayarray<string>
|
|Two '''info''' members are typically defined for '''accessory_truck_data''':
|-
|require
|token_arrayarray<token>
|
|Accessory types which should be required, regardless of the vehicle configuration, should be defined in '''accessory_truck_data'''. For more information, see [[Documentation/Engine/Units/accessory_data|accessory_data]].
|-
|'''fallback'''
|string_arrayarray<string>
|
|Each member contains a specially-formatted string which defines an accessory type (token) and the relative path to an SII file with a safe fallback accessory defined. So a fallback rule for <code>chassis</code> may look like <code>fallback[]: "chassis<nowiki>|</nowiki>4x2.sii"</code> which would call on ''/def/vehicle/truck/<make.model>/chassis/4x2.sii'' if there is ever a problem with the vehicle's currently assigned chassis accessory that makes it invalid or unloadable.
309
edits

Navigation menu