Key: Difference between revisions

From PZwiki
(Automated update of distribution header)
Tag: Reverted
(Undo revision 217789 by CalvyBot (talk) Manual revert empty table)
Tag: Undo
Line 28: Line 28:
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.
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.


{{clear}}
==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
It can be found on dead zombies.
 
{| 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
|}


==Code==
==Code==

Revision as of 09:21, 11 February 2024

Frame.png
This article contains outdated/low-quality images.
Reason: Upload 3D models for other key variants.
Please help the PZwiki by uploading an improved/updated version of the image(s) found on this page.
Key
Key Model.png
Key
Key
Key
Key
General
Category
Security
Encumbrance
Moodle Icon HeavyLoad.png
0.0
Function
Lock doors and unlock doors
Technical
Item ID
Base.Key1
Base.Key2
Base.Key3
Base.Key4
Base.Key5
PlushSpiffo.pngThis article is about key to open doors. For key to open padlocks, see Key (Padlock). For a car key, see Car Key.

Regular keys are 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

It can be found on dead zombies.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.50
item Key1
{
    DisplayCategory     = Security,
    Weight              = 0,
    Type                = Key,
    DisplayName         = Key,
    Icon                = Key1,
    MetalValue          = 5,
    WorldStaticModel    = Key,
}

See also