Alarm Clock: Difference between revisions

From PZwiki
(added link to HU)
(Updated to 41.78.16)
Line 1: Line 1:
{{languages|Alarm Clock}}
{{languages|Alarm Clock}}
{{header|The Game World|Items|type=Electric|version=Version 40|incver=5}}{{Infobox normal
{{header|The Game World|Items|type=Electric|version=Version 41|incver=78.16}}{{Infobox normal
|display_name=Alarm Clock
|display_name=Alarm Clock
|name_colour = Electric
|name_colour = Electric
Line 17: Line 17:


The sound of a triggered alarm will wake up the player if they're [[sleep]]ing. But be careful, this will also draw nearby zombies.
The sound of a triggered alarm will wake up the player if they're [[sleep]]ing. But be careful, this will also draw nearby zombies.
==Crafting==
{{Crafting header|ing=4}}
{{Crafting electrical|102|ing=4}}
|}


==Distribution==
==Distribution==
Line 23: Line 28:
==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=5}}
{{Retrieved|version=41|incver=78.16}}
<pre> item AlarmClock2
<pre>
Type = AlarmClock,
    item AlarmClock2
DisplayName = Alarm Clock,
    {
Weight = 0.5,
        DisplayCategory = Household,
Icon = AlarmClock,
        Type = AlarmClock,
AlarmSound = AlarmClockRingingLoop,
        DisplayName = Alarm Clock,
SoundRadius = 15,
        Weight = 0.5,
MetalValue = 25,
        Icon = AlarmClock,
        AlarmSound = AlarmClockRingingLoop,
        SoundRadius = 15,
        MetalValue = 25,
        WorldStaticModel = AlarmClock,
    }
</pre>
</pre>


==See also==
==See also==
*[[Digital Watch]]
*[[Digital Watch]]
*[[Aerosol Bomb|Aerosol Bomb with Timer]]
*[[Pipe Bomb|Pipe Bomb with Timer]]


{{Navbox/Electricity and Engineering}}
{{Navbox equipment}}


[[Category:Electricals and Transmission (Project)]]
[[Category:Electricals and Transmission (Project)]]

Revision as of 05:11, 3 April 2023

The Game WorldItemsAlarm Clock
Alarm Clock
Alarm Clock
General
Category Item
Encumbrance
Heavy Load
0.5
Function Display time
Distract zombies
Technical details
Base ID Base.AlarmClock2

An alarm clock is an item that displays the time.

Usage

When it is in the player's main inventory, the time of day will be displayed on the HUD at the top right of the screen, the same as a digital watch and classic wrist watch, with additional weight. Similar to the classic wrist watch, the alarm clock will not display how long the player has been alive for in the info tab. An alarm can be set to go off at a specific time by right-clicking it and selecting "Set Alarm". The alarm can be turned on or off.

This is a very effective tool for drawing off zombie hordes. Once the alarm is triggered (lasts for around 10 seconds), zombies move towards it and stop on top of it and disperse once it ends. This device will not prevent zombies from seeing the player, however can be used to lure them to a certain area.

The sound of a triggered alarm will wake up the player if they're sleeping. But be careful, this will also draw nearby zombies.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4
TimerCrafted.png
Crafted Timer
0 XP Electrical 1 Electronics Magazine Vol.2 Screwdriver.png
Screwdriver
(keep)

(consumed)
ElectronicsScrap.png
Scrap Electronics x1
(consumed)
Glue.png
Glue
(1 unit)

(consumed)

Distribution

Alarm clocks can be found in house bedrooms.

Code

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

	
    item AlarmClock2
    {
        DisplayCategory = Household,
        Type	=	AlarmClock,
        DisplayName	=	Alarm Clock,
        Weight	=	0.5,
        Icon	=	AlarmClock,
        AlarmSound = AlarmClockRingingLoop,
        SoundRadius = 15,
        MetalValue = 25,
        WorldStaticModel = AlarmClock,
    }

See also