Alarm Clock: Difference between revisions

From PZwiki
m (category)
(added new header and infobox)
Line 1: Line 1:
{{languages|Alarm Clock}}
{{languages|Battery}}
{{Items
{{header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 40|incver=5}}{{Infobox normal
|image = AlarmClock.png
|display_name=Battery
|weight = 1.5
|name_colour = Electric
}}
|name_text_colour = Electric
|image=AlarmClock.png
|weight=0.5
|primary_use = Display [[Controls#Time Controls|time]]
|secondary_use = Distract [[zombies]]
|class_name=Base.AlarmClock2
}}An '''alarm clock''' is an [[Items|item]] that displays the [[Controls#Time Controls|time]].


The alarm clock is an [[Items|item]] that can be found in house bedrooms. When it is in your inventory, you will be able to see the time of day in the HUD on the top right of screen. You can set what time the alarm will go off by right clicking it and select Set Alarm. You can also turn the alarm on and off.  
==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. 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.  


== Uses ==
This is a very effective tool for drawing off [[zombies|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.
This is a very effective weapon for drawing off hoards. Be careful though, once the ringer goes off (lasts for around 10 seconds), the zombies will stop standing right on it and disperse again. Also, this device will not prevent the zombies from seeing you but is a way to lure them to a certain area.


You can set the alarm to go off in order to wake up your character from sleep (single player). 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.
 
==Distribution==
Alarm clocks can be found in house bedrooms.
 
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=5}}
<pre> item AlarmClock2
Type = AlarmClock,
DisplayName = Alarm Clock,
Weight = 0.5,
Icon = AlarmClock,
AlarmSound = AlarmClockRingingLoop,
SoundRadius = 15,
MetalValue = 25,
</pre>
 
==See also==
*[[Digital Watch]]


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

Revision as of 08:49, 3 August 2018

Battery
Battery
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. 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.

Distribution

Alarm clocks can be found in house bedrooms.

Code

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

	item AlarmClock2
		Type		= AlarmClock,
		DisplayName	= Alarm Clock,
		Weight		= 0.5,
		Icon		= AlarmClock,
		AlarmSound 	= AlarmClockRingingLoop,
		SoundRadius 	= 15,
		MetalValue 	= 25,

See also