Changes

Jump to navigation Jump to search

Documentation/Engine/Units/accessory cargo data

768 bytes removed, 13:48, 20 June 2017
Attributes
|string
|
|Path to the high level-of-detail detailed meshmodel descriptor (.pmd). This is used only for vehicles used by player. Additionally they are used in vehicle previews & browser windows.
|-
|model
|string
|
|Path to the standard level-of-detail meshmodel descriptor (.pmd). 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
|array<string array>
|
|Paths to the reduced level-of-detail meshesmodel descriptors (.pmd), in order of increasing viewing distance (decreasing model complexity).
|-
|collision
|string
|
|Path to the collision mesh descriptor (.pmc).
|-
|variant
|token
|default|Selects Name of the variant to be used for on all models/collisions defineddescriptors of this accessory.
{{Note|All models defined for this '''accessory_cargo_data''' must have this variant name.}}
|-
|look
|token
|default|Selects Name of the look to be used for on all models defineddescriptors of this accessory.
{{Note|All models defined for this '''accessory_cargo_data''' must have this look name.}}
|-
|animations
|owner_ptr_arrayarray<owner_ptr>|null
|Points to units of the type ''anim_idle'' or ''anim_random'' in order to assign dynamic animations to skinned cargo models.
|}
 
{{UnitDef|def=<nowiki> "accessory_cargo_data":{
"superclass":"accessory_data",
"attrs":{
"name":{
"type": "string"
},
"short_name":{
"type": "string"
},
"icon":{
"type": "string"
},
"info":{
"type": "string_array"
},
"price":{
"type": "s64"
},
"unlock":{
"type": "uint"
},
"suitable_for":{
"type": "string_array"
},
"conflict_with":{
"type": "string_array"
},
"defaults":{
"type": "string_array"
},
"require":{
"type": "token_array"
},
"detail_model":{
"type": "string"
},
"model":{
"type": "string"
},
"lods":{
"type": "string_array"
},
"collision":{
"type": "string"
},
"variant":{
"type": "token"
},
"look":{
"type": "token"
},
"animations":{
"type": "owner_ptr_array"
}
}
},</nowiki>}}

Navigation menu