DIFF

About

DIFF stands for DayZ Internal File Finder.

It's a browsable documentation for the DayZ Enforce Script sources. Every class, method, enum and constant, generated automatically from the official repository. It's open source and built by the community.

Made for anyone wandering the DayZ modding and scripting world, and meant to be a quicker way to browse than the raw sources. Unfortunately, you won't find an official detailed documentation about this subject. This is just the tip of the iceberg, so community content is your best friend. Check the Community tab, and if you join a Discord channel, make sure to check the pinned messages, as most recurring questions are answered there.

Collaborations

Bug reports, suggestions, and community notes are welcome. Open an issue or a pull request on GitHub, or leave a message on Discord.

Most of the script API has no doc comment. A community note fills one in: a short annotation on a class, enum or member. What an argument expects, whether a call is server-only, what a method does that its name does not say. Notes show up on that declaration's page, labelled as community writing rather than Bohemia's, and on every build at once.

Community notes live in notes.json and it's easy to add or edit one. Add an entry by opening a pull request on GitHub. Merged notes go live on the next deploy.

{
  // Examples
  "ActionInteractBase": "Press-to-interact world action (open a door, flip a switch): no item required, no progress bar.",
  "ActionSingleUseBase": "One-press action with an animation (eating a pill, switching a light). The server-side effect usually goes in `OnStartServer`.",
  "PluginManager": "Creates and owns every `PluginBase` singleton, on server and client. The global `GetPlugin(typename)` is the front door.",
  "ItemBase.OnCombine": "Server-side stack merge — pouring one stack into another. `other_item` is the source stack.",
  "Object.GetHealth01": "Health normalized to 0..1 of the zone's maximum — handy for bars and thresholds without reading config maxima.",
  "CGame.GetTime": "Mission time in milliseconds, monotonic since mission start. Good for cooldowns and timing; unrelated to the in-game calendar clock."
}

Agents

The HTML pages are for people. Agents should start at llms.txt and fetch the JSON rather than scraping class pages. How to look a type up is in agent.md. api.json is latest-only; older builds keep the HTML archive at /v/<label>/ (e.g. /v/129u3/). The script sources it describes are under the DPL; community notes are not.

For pasting into a chat by hand, every class and enum page has a Copy for LLM button under its title: the page as Markdown — signatures, inheritance, docs and community notes — with its build and source named.

Colophon

DIFF is a custom static site generator: Node 20+, ES modules, and nothing to install. There is no bundler and no runtime dependency. A custom parser reads Enforce Script; the generator turns that into these pages; the browser runs plain modules out of site/.

Type is Inter, loaded from Google Fonts as a variable face with optical size, with the system UI stack behind it. Code, signatures and shortcuts use the platform monospace stack — ui-monospace, SF Mono, Cascadia Code, Menlo, Consolas.

The source lives on GitHub. The site is hosted on Netlify. It is written and edited in Cursor with multiple LLMs. Who owns what, and under which terms, is in Legal.

This is not official documentation and is not affiliated with DayZ or Bohemia Interactive.

The script sources shown here are © BOHEMIA INTERACTIVE a.s., all rights reserved, and are licensed under the DayZ Public License (DPL): non-commercial, DayZ-only reuse with attribution. They have been modified for presentation — parsed, reorganized and reformatted — from the originals in DayZ Script Diff, and are offered as-is, without warranties of any kind. The generator itself is MIT, and that license does not extend to them.

Community notes and outbound links are community-made and carry their own licenses.

DAYZ®, ENFUSION® and BOHEMIA INTERACTIVE® are registered trademarks of BOHEMIA INTERACTIVE a.s. All other trademarks and copyrights are the property of their respective owners.