Flashlight: Difference between revisions

From PZwiki
mNo edit summary
(added new header and infobox)
Line 1: Line 1:
{{languages}}
{{languages|Flashlight}}
{{header|The Game World|Items|Tools|Illumination|type=Electric|version=Version 39|incver=67.5}}{{Infobox drainable
|display_name=Flashlight
|name_colour = Electric
|name_text_colour = Electric
|image=Flashlight.png
|weight=2
|primary_use=Light source
|max_units=1,111
|contents=[[Electricity]]
|light_distance = 20
|light_strength = 0.8
|torch_cone = True
|class_name=Base.Torch
}}A '''flashlight''' is a drainable [[items|item]] providing a source of light.


{{Items
==Usage==
|image = Flashlight.png 
A flashlight is used to provide light for the [[player]] when it is dark. It is the strongest equippable light source in the game, however the light emitted from the flashlight will attract [[zombies]].  
|weight = 2
}}
A '''flashlight''' is used to provide light for the [[player]] when it is dark and is the strongest source of light in the game. However, the light will attract any [[zombies]] around the player that see the light emitted from the flashlight. When low on battery, the flashlight will occasionally flicker.


Requires [[battery|batteries]]. Once a battery is in, it can be fitted and un-fitted. However, as the flashlight is used, the battery will eventually die out. A new battery can be put into the flashlight once a battery is dead.
Requires [[battery|batteries]]. Once a battery is in, it can be fitted and un-fitted. However, as the flashlight is used, the battery will eventually die out. A new battery can be put into the flashlight once a battery is dead. When low on battery, the flashlight will occasionally flicker.


==Crafting==
{{Crafting table header}}
{{RecipeLookup|4036}}
{{RecipeLookup|4037}}
{{RecipeLookup|1017}}
{{Crafting table footer}}


== Code ==
== Code ==
<nowiki>item Torch
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{
{{Retrieved|version=40|incver=5}}
LightDistance = 16,
<pre> item Torch
Weight = 2,
LightDistance = 20,
DisappearOnUse = FALSE,
Weight = 2,
Type = Drainable,
DisappearOnUse = FALSE,
TorchCone = TRUE,
Type = Drainable,
UseDelta = 0.0009,
TorchCone = TRUE,
LightStrength = 0.8,
UseDelta = 0.0009,
DisplayName = Flashlight,
LightStrength = 0.8,
ActivatedItem = TRUE,
DisplayName = Flashlight,
Icon = Flashlight,
ActivatedItem = TRUE,
}</nowiki>
Icon = Flashlight,
MetalValue = 10,
cantBeConsolided = TRUE,</pre>


== History ==
==See also==
{| class="wikitable" width="550" style="text-align:center;"
|-
! Alpha || 
|-
| RC 2.9 || Will slowly drain and consume batteries automatically.
|}
 
==See Also==
* [[Battery]]
* [[Battery]]


{{Navbox/Tools}}
{{Navbox/Tools}}
[[Category:Version 0.2.0p]]
[[Category:Electricity and Engineering]]
[[Category:Illumination]]
[[Category:Tools]]
[[Category:Items]]

Revision as of 08:28, 3 August 2018

Flashlight
Flashlight
General
Category Item
Encumbrance
Heavy Load
2
Function Light source
Capacity 1,111 units
Contents Electricity
Light distance 20 tiles
Light strength 0.8
Torch cone True
Technical details
item ID Base.Torch

A flashlight is a drainable item providing a source of light.

Usage

A flashlight is used to provide light for the player when it is dark. It is the strongest equippable light source in the game, however the light emitted from the flashlight will attract zombies.

Requires batteries. Once a battery is in, it can be fitted and un-fitted. However, as the flashlight is used, the battery will eventually die out. A new battery can be put into the flashlight once a battery is dead. When low on battery, the flashlight will occasionally flicker.

Crafting

Template:Crafting table header |- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer

Code

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

	item Torch
		LightDistance		= 20,
		Weight			= 2,
		DisappearOnUse		= FALSE,
		Type			= Drainable,
		TorchCone		= TRUE,
		UseDelta		= 0.0009,
		LightStrength		= 0.8,
		DisplayName		= Flashlight,
		ActivatedItem		= TRUE,
		Icon			= Flashlight,
		MetalValue 		= 10,
		cantBeConsolided 	= TRUE,

See also

Template:Navbox/Tools