# Geiger Counter

**URL:** <https://forums.unrealengine.com/t/geiger-counter/2642853>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, Blueprint, question, epic-for-indies\
**Created:** [August 15, 2025, 1:12pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853 "2025-08-15T13:12:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mixi1123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mixi1123](https://forums.unrealengine.com/u/Mixi1123)\
**Post date:** [August 15, 2025, 1:12pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/1 "2025-08-15T13:12:55Z")

</div>

Hello everyone!  
Does anyone know how I can make a Geiger counter needle rotate based on the distance between the player and some “radioactive material”?  
Should I use a _Line Trace_ or _OnBeginOverlap_ for this?

I’d also like the needle to have a slight left–right jitter so it’s not completely static — it should still rotate based on distance, but when the value isn’t changing much, it should wobble a bit for realism.

Additionally, how can I make it so that each time the needle updates (for example, every _Tick_), it plays a clicking sound like a real Geiger counter?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [August 15, 2025, 9:19pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/2 "2025-08-15T21:19:27Z")

</div>

Hey @Mixi1123! Welcome to the forums!

I’m going to kind of skim because this is multiple questions, let me know if there’s anything you’d like a more detailed explanation on!

> [@Mixi1123](#):
>
> Should I use a _Line Trace_ or _OnBeginOverlap_ for this?

Have a collider sphere on the “Radioactive\_Actor” that goes out to the furthest reaches of where it would affect the player. Then use OnBeginOverlap to start a SetTimerByFunction, with an update speed relatively low, let’s say .075.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/5/6c582f01b8dfeffdbe17f895b0b9d389b7152e4c.png)

The connected function should check distance between the “Radioactive\_Actor”'s _Actor Location_ and the PLAYER’s _Actor Location_  
(Use a Vector minus Vector node and then a Vector Length node).

Then you’ll take that distance and do math in a Function- make sure the String on the Set Timer By Function matches the function’s name exactly!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/5/125bd03dede4201a113754b1891731097cdd3b54.jpeg)

From here, with that number you could do a load of things, it all depends on how YOU want it to behave! 🙂 As far as putting a dial on the screen you can use a UI widget of some kind or another (Progress bar type, I believe, but you’d need a custom one I don’t think UE5 comes with one). If you wanted the Geiger counter to be in the environment of the game, that’s something else entirely.

Get back to us with a bit more info! 🙂

---

<div class="post-metadata">

**Author:** ![Mixi1123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mixi1123](https://forums.unrealengine.com/u/Mixi1123)\
**Post date:** [August 15, 2025, 9:27pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/3 "2025-08-15T21:27:04Z")

</div>

Hi again, thanks for the welcome!

I got it working with line trace, and yeah that “needle” is in 3D form not UI. One thing i can’t get is sound it plays but it doesn’t stop. Here is the Screenshot, i probably didn’t do something right, but i’m new in Game Development and i have spend so much time on getting this system to “work” 😄

 ![Screenshot 2025-08-15 232255](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/7/957f474bd54c15b42a251d9070ebde315e427286.png)

And i love every thing about Unreal and Epic, You guys really try to make everything simple and help people 😄

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [August 15, 2025, 9:36pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/4 "2025-08-15T21:36:18Z")

</div>

Where are you playing the sound?

Maybe try a check using any of these Floats- if it’s above 0 or whatever threshold, play sound, if it’s below 0, stop sound. But of the ways you could be playing sound, I don’t see any?

---

<div class="post-metadata">

**Author:** ![Mixi1123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mixi1123](https://forums.unrealengine.com/u/Mixi1123)\
**Post date:** [August 15, 2025, 9:37pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/5 "2025-08-15T21:37:32Z")

</div>

I tried after Timeline, but it didn’t worked

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [August 15, 2025, 9:58pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/6 "2025-08-15T21:58:17Z")

</div>

Can you show what you mean with a picture? Also, can you show the insides of that timeline?

---

<div class="post-metadata">

**Author:** ![Mixi1123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mixi1123](https://forums.unrealengine.com/u/Mixi1123)\
**Post date:** [August 16, 2025, 11:34am UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/7 "2025-08-16T11:34:06Z")

</div>

“Edit: Got The sound working. The fix is just to have _Do Once_ and if there isn’t anything detected just plug that in reset”

Here is inside of Timeline

 ![Screenshot 2025-08-16 132833](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/d/a7d4024e53f2e31158afe6f5c93e549526db09de.png)

One thing about it is that the first time it rotates, it does it by Timeline, but next time it just snaps to that rotation, and besides that i would like to make that _needle_ doesn’t stay static, it has left–right jitter

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [August 18, 2025, 6:14pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/8 "2025-08-18T18:14:59Z")

</div>

Here’s a couple of adjustments I’d add to try to get what you need:

This will make sure the adjustment goes down, as of right now you’re always getting a hit on the line trace so it’s never going reverse.

Also experiment with play vs play from start and reverse vs reverse from end. 🙂

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/2/8c229c35d737f712194b55e510dd268189b4e1b5.png)

To add play into the needle you’re going to need to add a “Set timer by event”, and off of the “Completed” part of the timeline, run that, and every .2 seconds (looping) using the “Set Timer by event” , use “Random Float In range” to get a float between -5 and 5 degrees and have it add that to the relative rotation.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![Mixi1123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mixi1123](https://forums.unrealengine.com/u/Mixi1123)\
**Post date:** [August 21, 2025, 5:09pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/9 "2025-08-21T17:09:33Z")

</div>

I Will try it now!

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [August 26, 2025, 8:19pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/10 "2025-08-26T20:19:09Z")

</div>

Did you give it a shot @Mixi1123 ? Let us know how it’s going!

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [August 27, 2025, 7:18pm UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/11 "2025-08-27T19:18:09Z")

</div>

Instead of doing a zillion linetraces and timelines, could just add a big collision sphere to player and use begin overlap to start the geiger.

 ![geigerstart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/e/08e6ec6902dbe3851a784947ace32bddaf16231e.jpeg)

Here I first check if overlapped actor has a radioactive tag, then add the actor to an array var. Next it starts a timer with event which checks the distance to the most recent rad source, does some sloppy math, and updates relative rotation of a needle mesh I attached to front of camera. Using a UI widget would probably be a better idea tho..

Finally when the large sphere ends overlap, I check if actor is in the rad source array and remove it:

 ![geigerend](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/c/00cea90d8ac1cf027062b961f7fbc5b571174430.jpeg)

Should probably also check here if array is empty, then clear timer and reset needle, but yea.

Edit to add: To add some drift/wobble to the needle just add a small random float in range just before feeding it to the select node in my example.

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [August 28, 2025, 5:21am UTC](https://forums.unrealengine.com/t/geiger-counter/2642853/12 "2025-08-28T05:21:15Z")

</div>

Mucked with this more a bit and made a component to do the rad tracking and added a UI for it..

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/9/de92e626ae7cf2007430efb77641a758c969ef06.jpeg "GeigerCounter3rdperson Unreal Engine 5.6") ](https://www.youtube.com/watch?v=RpVW5O2jUfQ)

Project files [here](https://illspirit.com/files/GeigerCounterProject.zip) (59MB) if anyone wants to scavenge things from it.
