Key: Difference between revisions
m (Automated infobox fix) |
(Add distribution table, update code version bump) |
||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Equipment|Security}} | {{Header|Project Zomboid|Items|Equipment|Security}} | ||
{{Page version| | {{Page version|41.78.16}} | ||
{{Reupload|Upload 3D models for other key variants.}} | {{Reupload|Upload 3D models for other key variants.}} | ||
{{Infobox item | {{Infobox item | ||
Line 31: | Line 31: | ||
==Distribution== | ==Distribution== | ||
A key is a common item. Although it is possible to find keys in [[containers]] such as [[Containers#Counters|counters]], [[Containers#Bedroom Storage|dressers]], and [[Containers#Crates|crates]], it is much more common to find them on the [[corpse]]s of [[zombie]]s that were inside or in the vicinity of the building. If a [[door]] exists, it is likely to have a key that corresponds to it. | A key is a common item. Although it is possible to find keys in [[containers]] such as [[Containers#Counters|counters]], [[Containers#Bedroom Storage|dressers]], and [[Containers#Crates|crates]], it is much more common to find them on the [[corpse]]s of [[zombie]]s that were inside or in the vicinity of the building. If a [[door]] exists, it is likely to have a key that corresponds to it. | ||
The loot distributions can be found in the table(s) below. | |||
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;" | |||
! colspan="4" | Containers | |||
|- | |||
!Building/Room | |||
!Container | |||
! style="width: 3.2em;" |Rolls | |||
! style="width: 3.2em;" |Chance | |||
|- | |||
| kitchen | |||
| [[counter]] | |||
| 4 | |||
| 0.5 | |||
|} | |||
==Code== | ==Code== | ||
Line 39: | Line 55: | ||
| source = newitems.txt | | source = newitems.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41. | | version = 41.78.16 | ||
| code = | | code = | ||
item Key1 | item Key1 | ||
{ | { | ||
DisplayCategory = Security, | DisplayCategory = Security, | ||
Weight | Weight = 0, | ||
Type | Type = Key, | ||
DisplayName = Key, | |||
Icon = Key1, | |||
MetalValue = 5, | |||
WorldStaticModel = Key, | |||
} | } | ||
item Key2 | |||
{ | |||
DisplayCategory = Security, | |||
Weight = 0, | |||
Type = Key, | |||
DisplayName = Key, | |||
Icon = Key2, | |||
MetalValue = 5, | |||
WorldStaticModel = Key2, | |||
} | |||
item Key3 | |||
{ | |||
DisplayCategory = Security, | |||
Weight = 0, | |||
Type = Key, | |||
DisplayName = Key, | |||
Icon = Key3, | |||
MetalValue = 5, | |||
WorldStaticModel = Key3, | |||
} | |||
item Key4 | |||
{ | |||
DisplayCategory = Security, | |||
Weight = 0, | |||
Type = Key, | |||
DisplayName = Key, | |||
Icon = Key4, | |||
MetalValue = 5, | |||
WorldStaticModel = Key3, | |||
} | |||
item Key5 | |||
{ | |||
DisplayCategory = Security, | |||
Weight = 0, | |||
Type = Key, | |||
DisplayName = Key, | |||
Icon = Key5, | |||
MetalValue = 5, | |||
WorldStaticModel = Key2, | |||
} | |||
}} | }} | ||
}} | }} |
Revision as of 07:44, 19 March 2024
Base.Key2
Base.Key3
Base.Key4
Base.Key5
- This article is about key to open doors. For key to open padlocks, see Key (Padlock). For a car key, see Car Key.
A key is used to lock and unlock doors in the game.
Usage
Locking and unlocking
Keys are connected to garage doors and regular door around the house, hovering over the key in your inventory will highlight the doors it is connected to in yellow. If it is in the player's inventory, the "Unlock Door" context option will appear when selecting a door.
Distribution
A key is a common item. Although it is possible to find keys in containers such as counters, dressers, and crates, it is much more common to find them on the corpses of zombies that were inside or in the vicinity of the building. If a door exists, it is likely to have a key that corresponds to it.
The loot distributions can be found in the table(s) below.
Containers | |||
---|---|---|---|
Building/Room | Container | Rolls | Chance |
kitchen | counter | 4 | 0.5 |
Code
Source: ProjectZomboid\media\scripts\newitems.txt
item Key1
{
DisplayCategory = Security,
Weight = 0,
Type = Key,
DisplayName = Key,
Icon = Key1,
MetalValue = 5,
WorldStaticModel = Key,
}
item Key2
{
DisplayCategory = Security,
Weight = 0,
Type = Key,
DisplayName = Key,
Icon = Key2,
MetalValue = 5,
WorldStaticModel = Key2,
}
item Key3
{
DisplayCategory = Security,
Weight = 0,
Type = Key,
DisplayName = Key,
Icon = Key3,
MetalValue = 5,
WorldStaticModel = Key3,
}
item Key4
{
DisplayCategory = Security,
Weight = 0,
Type = Key,
DisplayName = Key,
Icon = Key4,
MetalValue = 5,
WorldStaticModel = Key3,
}
item Key5
{
DisplayCategory = Security,
Weight = 0,
Type = Key,
DisplayName = Key,
Icon = Key5,
MetalValue = 5,
WorldStaticModel = Key2,
}