vehicle

class VehicleMixin(
trunk_inventory: ~draftsman.signatures.Inventory | None = NOTHING,
ammo_inventory: ~draftsman.signatures.Inventory | None = NOTHING,
driver_is_main_gunner: bool = False,
selected_gun_index: ~typing.Annotated[int,
<draftsman.validators._AndValidator object at 0x7436dd5c7b50>,
~OneIndexed] = 0,
*,
extra_keys: dict[str,
~typing.Any] | None = None,
)

A number of common properties that all vehicles have.

ammo_inventory : Inventory | None

Serialized

This attribute is imported/exported from blueprint strings.

Inventory object which encodes slot filters for the ammunition slots of the vehicle. Setting the bar of this inventory has no effect.

driver_is_main_gunner : bool

Serialized

This attribute is imported/exported from blueprint strings.

Whether or not the driver or the passenger has control of the vehicle’s weapons.

selected_gun_index : _AndValidator object at 0x7436dd5c7b50>, ~OneIndexed]

Serialized

This attribute is imported/exported from blueprint strings.

Which gun is currently selected to fire by the gunner.

trunk_inventory : Inventory | None

Serialized

This attribute is imported/exported from blueprint strings.

Inventory object which encodes slot filters for the main inventory of the vehicle.