Trunk Lid: Difference between revisions
mNo edit summary |
m (→Code: Bump to .16) |
||
Line 34: | Line 34: | ||
==Code== | ==Code== | ||
'''''From vehicleitems.txt (Project Zomboid directory/media/scripts/vehicles/)''''' | '''''From vehicleitems.txt (Project Zomboid directory/media/scripts/vehicles/)''''' | ||
{{Retrieved|version=41|incver=78}} | {{Retrieved|version=41|incver=78.16}} | ||
<pre> | <pre> | ||
item TrunkDoor1 | item TrunkDoor1 | ||
Line 78: | Line 78: | ||
} | } | ||
</pre> | </pre> | ||
==See also== | ==See also== | ||
*[[Vehicles Guide]] | *[[Vehicles Guide]] |
Revision as of 22:16, 24 February 2023
A trunk lid is an item forming part of most vehicles.
Usage
A trunk lid is fitted onto the rear of a vehicle to prevent items in the trunk from falling out. The durability of the trunk determines the likeliness of items falling out of the vehicle. It is unknown whether this mechanic is present in the Chevalier D6, considering it cannot be fitted with a trunk lid.
Having a trunk lid fitted in a multiplayer game allows it to be locked using the car key, preventing other players from stealing items.
Item IDs
Vehicle type | Class name |
---|---|
Standard | Base.TrunkDoor1 |
Heavy-Duty | Base.TrunkDoor2 |
Sport | Base.TrunkDoor3 |
Code
From vehicleitems.txt (Project Zomboid directory/media/scripts/vehicles/) Retrieved: Build 41.78.16
item TrunkDoor1 { DisplayCategory = VehicleMaintenance, Weight = 15.0, Type = Normal, DisplayName = Trunk Lid, Icon = EngineDoor, VehicleType = 1, ChanceToSpawnDamaged = 25, ConditionMax = 100, MechanicsItem = TRUE, WorldStaticModel = CarTrunkLid, } item TrunkDoor2 { DisplayCategory = VehicleMaintenance, Weight = 15.0, Type = Normal, DisplayName = Trunk Lid, Icon = EngineDoor, VehicleType = 2, ChanceToSpawnDamaged = 25, ConditionMax = 100, MechanicsItem = TRUE, WorldStaticModel = CarTrunkLid, } item TrunkDoor3 { DisplayCategory = VehicleMaintenance, Weight = 15.0, Type = Normal, DisplayName = Trunk Lid, Icon = EngineDoor, VehicleType = 3, ChanceToSpawnDamaged = 25, ConditionMax = 100, MechanicsItem = TRUE, WorldStaticModel = CarTrunkLid, }