# Radiation and geiger counter questions

**URL:** <https://forums.unrealengine.com/t/radiation-and-geiger-counter-questions/1286563>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, CPP, question\
**Created:** [September 7, 2023, 6:37am UTC](https://forums.unrealengine.com/t/radiation-and-geiger-counter-questions/1286563 "2023-09-07T06:37:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![VannimonEternal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VannimonEternal](https://forums.unrealengine.com/u/VannimonEternal)\
**Post date:** [September 7, 2023, 6:37am UTC](https://forums.unrealengine.com/t/radiation-and-geiger-counter-questions/1286563/1 "2023-09-07T06:37:29Z")

</div>

Hi

After playing a lot of Fallout and Metro, I’ve started thinking about radiation mechanics and how geiger counters could be programmed. From [this reddit thread](https://www.reddit.com/r/gamedev/comments/zenwgv/understanding_the_radiation_mechanic/) I’ve been able to get a decent idea of how geiger counter audio works, but now I’m thinking of how radiation could be made, perhaps more “generic”. For example, in Fallout, radiation heals ghouls while damaging normal humans. So radiation detection on these would work differently, likewise with the geiger counter, which ticks with radiation exposure. I’ve set up a sphere volume that emits some “radiation per second” as a number, and it’s easy enough to start the geiger counter ticking sound when in this volume, but I can’t help but think I’m going about this the wrong way. Any advice anyone can offer on this would be appreciated.

Thanks,  
Vaani

---

<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:** [September 7, 2023, 7:18am UTC](https://forums.unrealengine.com/t/radiation-and-geiger-counter-questions/1286563/2 "2023-09-07T07:18:52Z")

</div>

> [@VannimonEternal](#):
>
> For example, in Fallout, radiation heals ghouls while damaging normal humans. So radiation detection on these would work differently

I’d just use this scripted into a component that could be then attached to world entities or even spawned (nuka-cola spillage) / destroyed (clean-up) dynamically:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/f/33fdd3f3355e6e3535ebab3309742c3ea37e726f.png)

Use `Damage Type Classes` to deal a specific type of damage which can be interpreted on the receiving end:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/5/435a99cb2a6d9268856b2be6b8de08369b031cc9.png)

You can do the same for any type of environmental effect - it does not even need to be _damage_ - anything from radiation build-up, to [grenades going off](https://forums.unrealengine.com/t/radial-impulse-to-ignore-specified-actors/491573/2).

* * *

The `Damage Prevention Channel` on that 1st node can be super handy, too! Perhaps there’s something lead-lined we can hide under:

![0e602cc097d24636e2984000f36b367a--fallout-game-fallout-new-vegas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/5/cc53e8ec6a26ba8b61111c718e3c131d6b673fc8.jpeg)

You could designate additional custom `trace channels` / `object types` to handle this.

---

<div class="post-metadata">

**Author:** ![VannimonEternal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VannimonEternal](https://forums.unrealengine.com/u/VannimonEternal)\
**Post date:** [September 7, 2023, 8:21am UTC](https://forums.unrealengine.com/t/radiation-and-geiger-counter-questions/1286563/3 "2023-09-07T08:21:08Z")

</div>

Heck me that’s genius haha, thanks so much. Often we forget about the simplest things when overthinking 😅

---

<div class="post-metadata">

**Author:** ![VannimonEternal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VannimonEternal](https://forums.unrealengine.com/u/VannimonEternal)\
**Post date:** [September 7, 2023, 8:37am UTC](https://forums.unrealengine.com/t/radiation-and-geiger-counter-questions/1286563/4 "2023-09-07T08:37:24Z")

</div>

I do have one further question, if you don’t mind. Now that we’re using the damage system for it, how would you work this with a geiger counter sound? A geiger counter would pretty much need to be constantly checking for radiation around it, rather than just once every second (which is fine for damaging a character)

---

<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:** [September 7, 2023, 9:07am UTC](https://forums.unrealengine.com/t/radiation-and-geiger-counter-questions/1286563/5 "2023-09-07T09:07:03Z")

</div>

disclaimer: _Sound is not my strongest suit._

Since I know precisely diddly-squat about [MetaSounds in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/5.1/en-US/metasounds-in-unreal-engine/), I’d either learn how the fancy stuff works if I had the time, which I don’t, or rely on something that I somewhat understand:

- a sound cue:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/a/1aaf766216b897757e5e3fc8e239709811c98266.png)

- and the meter can play it like so:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/7/1d72ea53034ba2b222736b319e57f939545c279e.png)

Instead of damage event, you could probably just push some values in since it’d the player who holds the meter which the above actors represents. Since Audio is a component, it opens up your options.

When the player receives radiation interface message (not necessarily damage), have the meter play a looping cue. If no radiation happened in the last second, stop the sound. This part can be improved somehow but should work as is.

Untested but could / should work 🤞

---

<div class="post-metadata">

**Author:** ![VannimonEternal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VannimonEternal](https://forums.unrealengine.com/u/VannimonEternal)\
**Post date:** [September 7, 2023, 9:46am UTC](https://forums.unrealengine.com/t/radiation-and-geiger-counter-questions/1286563/6 "2023-09-07T09:46:35Z")

</div>

Love it, got something working! Not very optimized, but I’ll deal with that later haha. Thanks so much for the help!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 7, 2023, 9:46am UTC](https://forums.unrealengine.com/t/radiation-and-geiger-counter-questions/1286563/7 "2023-10-07T09:46:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
