Hold Your Breath: Horror FPS Kit with Flashlights, Scripted Scares and Stalkers
README.md
Torch
The handheld light. Put it on the player prototype's body: every joining player gets their own torch (a shadow-casting spot or flame light that follows their camera with lag and sway, a held model with a glowing lens, sounds, a battery). style switches the whole look and behaviour (classic, penlight, lantern, headlamp, phone, flare, glowstick, candle, dynamo, uv, cameraFlash, lighter). Synced fields (on, charge, battery, bag, fault, flickerUntil, pitch, ...) are written by the owning player and drawn by every peer. Local options: startOn, spares, drainScale, controls, meter, autoSwap, randomFaults, shadows, npc (torch carried by an NPC or test dummy: driven from the body's pose and pitch). Needs no other component. Drive it from code with flashlightKit.api.