Difference between revisions of "Documentation/Engine/Units/accessory cargo data"
< Documentation | Engine | Units
Jump to navigation
Jump to search
(→Attributes) |
(Unit def section removed) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
|string | |string | ||
| | | | ||
− | |Path to the | + | |Path to the high level-of-detail mesh. |
|- | |- | ||
|model | |model | ||
|string | |string | ||
| | | | ||
− | |Path to the | + | |Path to the standard level-of-detail mesh. If only a single LOD is used, it should be set up as '''model''', and the other attributes (detail_model, lods) should not be defined. |
|- | |- | ||
|lods | |lods | ||
− | |array | + | |string array |
| | | | ||
− | |Paths to the reduced level-of-detail | + | |Paths to the reduced level-of-detail meshes, in order of increasing viewing distance (decreasing model complexity). |
|- | |- | ||
|collision | |collision | ||
|string | |string | ||
| | | | ||
− | |Path to the collision | + | |Path to the collision mesh (.pmc). |
|- | |- | ||
|variant | |variant | ||
|token | |token | ||
− | | | + | |default |
− | | | + | |Selects the variant to be used for all models/collisions defined. |
{{Note|All models defined for this '''accessory_cargo_data''' must have this variant name.}} | {{Note|All models defined for this '''accessory_cargo_data''' must have this variant name.}} | ||
|- | |- | ||
|look | |look | ||
|token | |token | ||
− | | | + | |default |
− | | | + | |Selects the look to be used for all models defined. |
{{Note|All models defined for this '''accessory_cargo_data''' must have this look name.}} | {{Note|All models defined for this '''accessory_cargo_data''' must have this look name.}} | ||
|- | |- | ||
|animations | |animations | ||
− | | | + | |owner_ptr_array |
− | | | + | |null |
|Points to units of the type ''anim_idle'' or ''anim_random'' in order to assign dynamic animations to skinned cargo models. | |Points to units of the type ''anim_idle'' or ''anim_random'' in order to assign dynamic animations to skinned cargo models. | ||
|} | |} |
Revision as of 16:26, 9 March 2017
The accessory_cargo_data unit class configures visible cargo models for trailers and can be used to bind animations if the model is skinned. Units of this type are found in /def/vehicle/trailer/<trailer_name>/.
Attributes
Many common attributes are inherited from accessory_data.
Name | Type | Default Value | Description |
---|---|---|---|
detail_model | string | Path to the high level-of-detail mesh. | |
model | string | Path to the standard level-of-detail mesh. If only a single LOD is used, it should be set up as model, and the other attributes (detail_model, lods) should not be defined. | |
lods | string array | Paths to the reduced level-of-detail meshes, in order of increasing viewing distance (decreasing model complexity). | |
collision | string | Path to the collision mesh (.pmc). | |
variant | token | default | Selects the variant to be used for all models/collisions defined.
Note: All models defined for this accessory_cargo_data must have this variant name. |
look | token | default | Selects the look to be used for all models defined.
Note: All models defined for this accessory_cargo_data must have this look name. |
animations | owner_ptr_array | null | Points to units of the type anim_idle or anim_random in order to assign dynamic animations to skinned cargo models. |