# Digging system like Dungeons 4

**URL:** <https://forums.unrealengine.com/t/digging-system-like-dungeons-4/1849794>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 10, 2024, 3:02pm UTC](https://forums.unrealengine.com/t/digging-system-like-dungeons-4/1849794 "2024-05-10T15:02:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 10, 2024, 4:18pm UTC](https://forums.unrealengine.com/t/digging-system-like-dungeons-4/1849794/4 "2024-05-10T16:18:10Z")

</div>

Have a look:

> [@How to add a hit count (health points) to individual instances?](https://forums.unrealengine.com/t/how-to-add-a-hit-count-health-points-to-individual-instances/227176/2):
>
> The name of the game is Custom Primitive Data (check docs at the bottom). The material for a brick: each instance stores a float which is used to Lerp between 2 colours (to visualise hits remaining) this can (and probably should) get prettified Making a brick wall: create a bunch of instances and store their data in an int | int Map instead of an integer, you could have a struct and hold all kind of data here; perhaps this brick is worth some coins, or explodes when destroyed and …

That could be the gist of handling blocks.

---

_[View the full topic](https://forums.unrealengine.com/t/digging-system-like-dungeons-4/1849794)._
