Flashlight: Difference between revisions
(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 | {{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= | |weight=1 | ||
|primary_use=Light source | |primary_use=Light source | ||
|max_units=1,111 | |max_units=1,111 | ||
|contents=[[ | |contents=[[Battery]] | ||
|light_distance = | |light_distance = 25 | ||
|light_strength = | |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 | 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. | ||
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 | {{Crafting header|ing=2}} | ||
{{ | {{Crafting general|002|ing=2}} | ||
{{ | {{Crafting general|003|ing=2}} | ||
{{ | |} | ||
{{Crafting | ===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= | {{Retrieved|version=41|incver=52}} | ||
<pre> item Torch | <pre> 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, | |||
}</pre> | |||
==See also== | ==See also== | ||
* [[Battery]] | *[[Battery]] | ||
*[[Hand Torch]] | |||
{{ | {{Navbox_equipment}} | ||
[[Category:Electricity and Engineering]] | [[Category:Electricity and Engineering]] |
Revision as of 05:22, 24 July 2021
Flashlight | ||
---|---|---|
| ||
General | ||
Category | Item | |
Encumbrance | 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 |
0 XP | none | Flashlight (consumed) |
Battery (consumed) | |
Battery |
0 XP | none | (keep) |
Carpentry
Product | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 | Ingredient 3 | Ingredient 4 | Ingredient 5 |
---|---|---|---|---|---|---|---|---|
Lamp on Pillar |
1.25 Carpentry | Carpentry 4 | Hammer (tag) (keep) |
Plank x2 (consumed) |
Nails x4 (consumed) |
Rope x1 (consumed) |
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, }