• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Experimental Feedback
  • /DZEXP-185
Back
2

Scripting API to open and close terrain holes at runtime

Feature RequestMap / TerrainModded
2

State

User feedback
Issue key
DZEXP-185
Access
Public
Space
DayZ
Project
Experimental Feedback
Creator
thehboy
Created
Sep 24, 2026
Views
259
Platform
PC Steam
What happened?

Because holes are fixed at map load, a mod cannot let players dig where and when they want. The only workaround is to declare holes in advance and cover each cell with an object until someone digs it. An uncovered hole renders as a open square, and anyone who steps in falls to sea level. That limits digging to small fixed zones: covering large areas would replace the terrain's rendering, grass and surface types with objects.

Reproduction steps


## What works today

Tested on 1.30.164014 Experimental, Chernarus, with a config-only mod:

- Holes declared in CfgWorlds >> ChernarusPlus >> Holes >> <group> >> tiles[] load on the server, and the client renders them. We added 20 groups (28 cells).

- A hole is one terrain cell: 7.5 m on Chernarus.

- A player can stand, move and use actions below intact terrain, and reconnects there after a server restart. A player can also drop into a hole onto an object placed under it.

- Script only has proto native bool SurfaceIsHole(float x, float z); on CGame. Found nothing that creates, removes or reloads holes, terrain or config at runtime.

Exact build version (optional)
1.30 Exp
Where did it happen?
Official
Is it modded?
No
Expected result

## Request

A server-authoritative API that is replicated to every client, including clients that join later, and updates collision, rendering and the navmesh. For example:

// CGame, server side

proto native bool SetSurfaceHole(float x, float z, bool isHole); // one terrain cell

proto native bool SetSurfaceHoleGroup(string groupName, bool enabled); // a group declared in CfgWorlds >> Holes

The names are only a suggestion. The per-cell call is what makes digging anywhere possible. If that is too costly, a runtime toggle for groups declared closed in config would still help a lot, ideally with rectangular ranges so large areas can be declared cheaply.

## Nice to have

- A script query for the terrain cell size (we currently read it from the .wrp header).

- An event when a hole opens or closes, so client scripts can update local objects.

- Persistence is not required: mods can store their own list and re-apply it when the server starts.

## Use cases

- Player-dug trenches, foxholes and fighting positions.

- Player-built underground bases with a real entrance instead of a teleport.

- Hatches, cave-ins and craters from events.

- Community maps with dynamic underground content.

Reactions

Activity

    2 months ago
  • thehboy
    created issue2 months ago
  • thehboy
    changed2 months ago
  • This comment has been removed.
    2 months ago
  • 2 months ago
  • thehboy
    changed2 months ago
  • about 2 months ago
  • traqucommented
    about 2 months ago
    traqucommented
    about 2 months ago

    Wait I don't get it.. Can you make custom holes or not then...? I thought they must be baked in the TB and can not be modded in for DZE purposes

  • about 2 months ago
  • This comment has been removed.
    about 2 months ago
  • about 2 months ago
  • l909
    changed state to
    USER FEEDBACK
    about 2 months ago

You are not signed in. Please sign in to see more details and to reply.

State

User feedback
Issue key
DZEXP-185
Access
Public
Space
DayZ
Project
Experimental Feedback
Creator
thehboy
Created
Sep 24, 2026
Views
259