Horror template

A first-person horror game: a textured sci-fi facility lit by failing lamps, a flashlight you control, and a stalker that hunts by sound. Solo or co-op.

Last updated Dec 4, 2026Version 1.1.0

The Horror template starts in a briefing room of a dark sci-fi facility. You follow a corridor to a laboratory with a flashlight in your hand and a stalker somewhere in the dark. It never sees you: it hears your footsteps and walks to where it thinks you were. Everything shipped is CC0 and listed in ASSET_LICENSES.md at the template root.

Objective and sound

The Escape the facility quest starts with the map and shows on the HUD: take the keycard from the briefing desk, then lift the lockdown at the laboratory terminal, both with E. Each room is a RoomVolume and each doorway a Portal that follows its door through an audio parameter, so a shut door muffles a footstep for the stalker as it does for you. Every room also has an ambience zone that crossfades a bed per room and scatters creaks around the listener.

Controls

InputAction
W A S DMove
MouseLook
SpaceJump
Left ShiftSprint (loud)
Left CtrlCrouch (quiet)
FFlashlight on or off
EInteract, for example pick up the supply crate
Q or right mouse buttonThrow what you carry

Rebind them in Assets/Input/IMC_Default.inputcontext.

Variants

Pick a variant when you create the project.

VariantGame modeWhat you get
SoloAHorrorGameModeOne survivor, the flashlight and the stalker
Co-opAHorrorCoopGameModeThe same level with four spawn points; the game mode registers the survivor pawn with the network session

Both play the moment the project opens: the gameplay is the HorrorKit Kit, enabled in Config/Features.ini, and the manifest names its game mode directly, with the flashlight, the stalker and the fail state. For co-op, start the host with --host-session and the other players with --connect <ip>. See Multiplayer.

How it is built

PartWhat it does
Assets/Scenes/Main.mmapThe facility from 4 m kit pieces: briefing room, corridor, locker room, storage room and laboratory, with invisible collision boxes behind the walls and floors. The environment turns off the fallback light, keeps ambient light near zero and adds a height-fog actor, so only lamps and the flashlight light the level
Ceiling lampsA kit light piece with a point light under it. Some lamps use the light function LF_Flicker.mat, a noise over time that makes them stutter
AHorrorPlayerA first-person pawn with a spot-light flashlight that follows your pitch, flickers and clicks when toggled, a Quaternius body that plays the torch idle, walk, jog, sprint, crouch, jump and interact clips, and a footstep component
AHorrorStalkerA skeletal actor carrying a Trilobite model, a NavAgent, a Resident and an AIPerception. It reads its speed from the agent and feeds Stalker.animgraph
Stalker.residentThe creature's senses and speeds: hearing radius, belief decay, search points and the speed of each stage. See Resident AI
FootstepsAssets/Audio/Footsteps/<Surface>.cuegraph; each step also reports a noise to the AI, louder when you sprint and quieter when you crouch. See Audio
Horror.musicA four-state score: Explore, Tension, Combat and Aftermath, built from dark ambience loops

Make it yours

  • Build more rooms from the pieces in Assets/Facility/Models: walls are 4 m wide and 3 m tall, the top strip adds 2 m, and floor plates are 4 m square. Every placed mesh actor has a unit collision box; turn Collider.enabled off on pieces that should not block, and add one invisible box per wall run.
  • Make the creature hear farther or hunt faster by editing hearing_radius and the Hunting speed in Stalker.resident.
  • Tune the light in AHorrorPlayer: flashlightIntensity, flashlightRange and flickerStrength.
  • Swap the stalker model by changing meshPath in AHorrorStalker and naming your clips in Stalker.animgraph.

Doors and the fail state

Four doorways have doors (BP_FacilityDoorA to D): each is a Visual Script class whose OnInteract slides the door leaf up and back and plays a Kenney door sound. The stalker attacks when it reaches the survivor (attackRange, attackCooldown on AHorrorStalker): its Attack clip plays and AHorrorPlayer::Caught() is the fail state, a low stinger, a two-second flashlight blackout and a return to the player start.

Known gaps

  • The first-person hand holds no torch prop.

Engine sources

This page describes behavior implemented in these files of the engine repository, checked against commit 23111c146.

  • Templates/TP_Horror/README.md
  • Templates/TP_Horror/ASSET_LICENSES.md
  • Templates/TP_Horror/Config/TemplateDefs.ini
  • Templates/TP_Horror/Config/DefaultEngine.ini
  • Templates/TP_Horror/Assets/AI/Stalker.resident
  • Templates/TP_Horror/Assets/Characters/Survivor.animgraph
  • Templates/TP_Horror/Assets/Characters/Stalker.animgraph
  • Templates/TP_Horror/Assets/Audio/Footsteps/Default.cuegraph
  • Templates/TP_Horror/Assets/Audio/Music/Horror.music
  • Templates/TP_Horror/Assets/Materials/LF_Flicker.mat
  • Engine/Kits/HorrorKit/HorrorKit.mkit
  • Engine/Kits/HorrorKit/Api/HorrorKit/AHorrorPlayer.h
  • Engine/Kits/HorrorKit/Api/HorrorKit/AHorrorStalker.h
  • Engine/Kits/HorrorKit/Api/HorrorKit/AHorrorGameMode.h

Page feedback

Was this page helpful?