Feature: Vehicle Setup - Superxpdude/tmtm_template GitHub Wiki
By default, respawning vehicles in Arma are reverted back to their default state upon respawn, as if a new vehicle were spawned in and placed down. This is generally not preferred, as missions will frequently have customizations applied to player vehicles.
The template contains a "helper function" to help ensure that player vehicles retain the same setup upon respawn. To use, place the following code in the "expression" field of the vehicle respawn module:
_this call XPT_fnc_vehicleRespawn
This will trigger the template's vehicle respawn helper, which will ensure that the following vehicle customizations are preserved:
- Pylon weapons (for aircraft)
- Textures
- Animations (refers to general vehicle customizations, such as adding/removing doors, camo nets, etc.)
- Inventory (including items, backpacks, weapons, and magazines)
- Datalink status
Other vehicle settings not listed above will not be automatically preserved, and must be accounted for manually.