Flashlight: Difference between revisions

From PZwiki
(→‎Code: Codebox Update)
m (→‎top: category project: "The Game World")
Line 1: Line 1:
{{Languages}}
{{Languages}}
{{Header|The Game World|Items|Tools|Illumination|type=Electric|version=Version 41|incver=73}}
{{Header|Project Zomboid|Items|Tools|Illumination|type=Electric|version=Version 41|incver=73}}
{{Infobox drainable
{{Infobox drainable
|display_name=Flashlight
|display_name=Flashlight

Revision as of 10:41, 9 January 2024

Template:Infobox drainable Flashlight is a drainable item that provide a source of light.

Usage

A flashlight can be used to provide light for the player when it is dark. To use them, it must be equipped in either the primary or secondary hand, meaning a weapon will either be made to one-handed or unequipped. The light can be toggled with F. The light will be shone in a cone in front of the player. The flashlight is stronger than the hand torch and is the strongest equippable light source in the game.

Flashlights require a battery to function. Some spawn with one, so check how much yours has. As the light is used, the battery will gradually drain. When the battery is low, the light 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. A full battery can be taken out of a flashlight if needed for another device.

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

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.65
item Torch
{
  DisplayCategory    = LightSource,
  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,
  WorldStaticModel   = FlashLightGround,
}

See also