Currently, the command does not account for all possible object types within the imported map variant. The presently supported object types include:
- Vehicles
- Weapons
- Equipment
- Scenery
- Crates
Another issue is that object indexes are not updated when imported into the map file, which can cause object placements to break entirely.
Ideally, we would use the MapVariantTagNames and loop through each tag name, using the index of that tag name as the index for the object quota, then using the tag name at the corresponding index, we'll get the corresponding tag from the cache, and use that tag's index as the new ObjectDefinitionIndex. If the tag cannot be found, we will print a warning and set the ObjectDefinitionIndex to -1
Currently, the command does not account for all possible object types within the imported map variant. The presently supported object types include:
Another issue is that object indexes are not updated when imported into the map file, which can cause object placements to break entirely.
Ideally, we would use the
MapVariantTagNamesand loop through each tag name, using the index of that tag name as the index for the object quota, then using the tag name at the corresponding index, we'll get the corresponding tag from the cache, and use that tag's index as the newObjectDefinitionIndex. If the tag cannot be found, we will print a warning and set theObjectDefinitionIndexto -1