Flashlight: Difference between revisions

From PZwiki
(added model to infobox)
(Removed disproven info + updated to build 41.52 + replaced crafting table/template)
Line 1: Line 1:
{{languages}}
{{languages}}
{{header|The Game World|Items|Tools|Illumination|type=Electric|version=Version 39|incver=67.5}}{{Infobox drainable
{{header|The Game World|Items|Tools|Illumination|type=Electric|version=Version 41|incver=52}}{{Infobox drainable
|display_name=Flashlight
|display_name=Flashlight
|name_colour = Electric
|name_colour = Electric
|name_text_colour = Electric
|name_text_colour = Electric
|image=FlashLight_Model.png
|image=FlashLight_Model.png
| image_width = 300px
|image_width = 300px
| alternate_image = Flashlight.png
|alternate_image = Flashlight.png
| alternate_name = Flashlight
|alternate_name = Flashlight
| alternate_link =  
|alternate_link =  
|weight=2
|weight=1
|primary_use=Light source
|primary_use=Light source
|max_units=1,111
|max_units=1,111
|contents=[[Electricity]]
|contents=[[Battery]]
|light_distance = 20
|light_distance = 25
|light_strength = 0.8
|light_strength = 2
|torch_cone = True
|torch_cone = True
|class_name=Base.Torch
|class_name=Base.Torch
Line 20: Line 20:


==Usage==
==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]].  
A flashlight is used to provide light for the [[player]] when it is dark. To use the flashlight, it must be equipped in either the primary or secondary hand. The light can be toggled with {{key|F}}. It is the strongest equippable light source in the game.  


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.
A flashlight requires a [[battery|battery]] to function. As the flashlight is used, the battery will gradually drain. When the battery is low, the light from the flashlight will begin to flicker. Once completely drained, the battery will be {{abbr|consumed|disappears}} and a new battery will need to be put into the flashlight for it to function again.  


==Crafting==
==Crafting==
{{Crafting table header}}
{{Crafting header|ing=2}}
{{RecipeLookup|4036}}
{{Crafting general|002|ing=2}}
{{RecipeLookup|4037}}
{{Crafting general|003|ing=2}}
{{RecipeLookup|1017}}
|}
{{Crafting table footer}}
===Carpentry===
 
{{Crafting header|ing=5}}
{{Crafting carpentry|402|ing=5}}
|}


== Code ==
== Code ==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=5}}
{{Retrieved|version=41|incver=52}}
<pre> item Torch
<pre> item Torch
LightDistance = 20,
{
Weight = 2,
LightDistance = 25,
DisappearOnUse = FALSE,
Weight = 1,
Type = Drainable,
DisappearOnUse = FALSE,
TorchCone = TRUE,
Type = Drainable,
UseDelta = 0.0009,
TorchCone = TRUE,
LightStrength = 0.8,
UseDelta = 0.0009,
DisplayName = Flashlight,
LightStrength = 2,
ActivatedItem = TRUE,
TorchDot = 0.66,
Icon = Flashlight,
DisplayName = Flashlight,
MetalValue = 10,
ActivatedItem = TRUE,
cantBeConsolided = TRUE,</pre>
Icon = Flashlight,
MetalValue = 10,
cantBeConsolided = TRUE,
StaticModel = FlashLight,
primaryAnimMask = HoldingTorchRight,
        secondaryAnimMask = HoldingTorchLeft,
}</pre>


==See also==
==See also==
* [[Battery]]
*[[Battery]]
*[[Hand Torch]]


{{Navbox/Tools}}
{{Navbox_equipment}}
[[Category:Electricity and Engineering]]
[[Category:Electricity and Engineering]]

Revision as of 05:22, 24 July 2021

Flashlight
Flashlight
Flashlight
General
Category Item
Encumbrance
Heavy Load
1
Function Light source
Capacity 1,111 units
Contents Battery
Light distance 25 tiles
Light strength 2
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. To use the flashlight, it must be equipped in either the primary or secondary hand. The light can be toggled with F. It is the strongest equippable light source in the game.

A flashlight requires a battery to function. As the flashlight is used, the battery will gradually drain. When the battery is low, the light from the flashlight will begin to flicker. Once completely drained, the battery will be consumed and a new battery will need to be put into the flashlight for it to function again.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Flashlight.png
Flashlight
0 XP none Flashlight.png
Flashlight
(consumed)
Battery.png
Battery
(consumed)
Battery.png
Battery
0 XP none
(keep)

Carpentry

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5
LamponPillar Carpentry.png
Lamp on Pillar
1.25 Carpentry Carpentry 4 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x2
(consumed)
Nails.png
Nails x4
(consumed)
Rope.png
Rope x1
(consumed)
Flashlight.png
Flashlight x1
(consumed)

Code

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

	item Torch
	{
	LightDistance	=	25,
	Weight	=	1,
	DisappearOnUse	=	FALSE,
	Type	=	Drainable,
	TorchCone	=	TRUE,
	UseDelta	=	0.0009,
	LightStrength	=	2,
	TorchDot = 0.66,
	DisplayName	=	Flashlight,
	ActivatedItem	=	TRUE,
	Icon	=	Flashlight,
	MetalValue = 10,
	cantBeConsolided = TRUE,
	StaticModel = FlashLight,
	primaryAnimMask = HoldingTorchRight,
        secondaryAnimMask = HoldingTorchLeft,
	}

See also