Extra components are parts of a vehicle that can spawn randomly. By default, they always have a chance to appear, but their behavior can be changed with the vehicles.meta configuration and with external scripts.
Model
Extra components are named extra_x, x being a number from 1-9, ten, 11, or 12.
Extras support collisions. For extras with any child objects (such as sirens or nested extras), it is recommended to add a collision to the extra, otherwise these children may stay visible after removing the parent extra.
vehicles.meta
Flags
Flags are set in the flags tag, multiple flags are separated with spaces:
<flags>FLAG_EXTRAS_CONVERTIBLE FLAG_EXTRAS_STRONG FLAG_HAS_INTERIOR_EXTRAS</flags>
The following flags affect extras:
Required Extras
When required extras are set, at least one of these extras will always spawn. If only a single extra is required, it will always spawn.
To set required extras, the extras are listed under the requiredExtras tag, multiple extras are separated with spaces:
<requiredExtras>EXTRA_1 EXTRA_2</requiredExtras>
Required extras can be combined with extra includes to force multiple extras to spawn.
Extra Includes
Extra includes require multiple extras to spawn whenever one of the listed extras spawns. This can be used for example to spawn different extras on multiple doors at the same time.
Includes are added in the extraIncludes tag. Each include set requires its own Item tag. The following example will always force extra_1 and extra_2 to spawn at the same time, as well as extra_5, extra_6, and extra_7:
<extraIncludes>
<Item>EXTRA_1 EXTRA_2</Item>
<Item>EXTRA_5 EXTRA_6 EXTRA_7</Item>
</extraIncludes>
Authors
-
Cj24Administrator Accurate Studio
-
PNWParksFanDeveloper
Don’t have an account yet? Register yourself now and be a part of our community!