Key: Difference between revisions
(updated infobox & added reupload notice) |
(→Code: CodeBox update) |
||
Line 32: | Line 32: | ||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = false | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 50 | |||
| code = | |||
item Key1 | |||
{ | |||
DisplayCategory = Security, | |||
Weight = 0, | |||
Type = Key, | |||
DisplayName = Key, | |||
Icon = Key1, | |||
MetalValue = 5, | |||
WorldStaticModel = Key, | |||
} | |||
}} | |||
}} | |||
==See also== | ==See also== |
Revision as of 09:53, 31 January 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.
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
Source: ProjectZomboid\media\scripts\newitems.txt
item Key1
{
DisplayCategory = Security,
Weight = 0,
Type = Key,
DisplayName = Key,
Icon = Key1,
MetalValue = 5,
WorldStaticModel = Key,
}