Key: Difference between revisions

From PZwiki
m (Faalagorn moved page Key to Key (Door): Name in the navbox)
m (Added model image and gallery)
Line 3: Line 3:
|name_colour=Normal
|name_colour=Normal
|name_text_colour=Normal
|name_text_colour=Normal
|image=Key1.png
|image=Key_Model.png
|image_width=120px
|image_width=120px
|alternate_image=Key1.png
|alternate_name=Key
|weight=0.0
|weight=0.0
|primary_use=Lock doors and unlock doors
|primary_use=Lock doors and unlock doors
Line 25: Line 27:
==Distribution==
==Distribution==
It can be found on dead zombies.
It can be found on dead zombies.
==Gallery==
<gallery style="image-rendering:optimizeSpeed;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:-webkit-optimize-contrast;image-rendering:optimize-contrast;image-rendering:pixelated;image-rendering:crisp-edges;-ms-interpolation-mode:nearest-neighbor">
Key_Model.png|Model for the house key. 
KeyPadlock_Model.png|Model for the padlock key.
</gallery>


==Code==
==Code==

Revision as of 13:39, 20 April 2023

Template:Infobox normal

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.

Door Key

Key1.png Key2.png Key3.png Key4.png Key5.png Keys have different variants

Distribution

It can be found on dead zombies.

Gallery

Code

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.50

	item Key1
	        DisplayCategory = Security,
		Weight	=	0,
		Type	=	Key,
		DisplayName	=	Key,
		Icon	=	Key1,
		MetalValue = 5,
		WorldStaticModel = Key,

See also