I have a metal detector I want to create, and I want the sound cue to increase in speed by repeating faster when I get closer to the object. What do I do?
I have two blueprints, one for the object detecting and one for the metal detector.
Ok, you have to actually set the detected item. Just being the right type is not enoughâŚ
On begin play in the detector, you can use âget actor of classâ to set the item.
You also need to set the 4 variables to something sensible, otherwise it will just beep like crazyâŚ
The beauty of my method, is the detected item can be totally empty ![]()
That does help!
What shall I do about this little thing then?

Keep it
The thing on begin play, is just to set the reference.
Even though I probably did it wrong?
I need more of a clue. What are you basing this on? Can you show me the whole detector BP?
You still havenât set the variable! ![]()

Yeah ![]()
Does it work yet?
Ok so some sensible settings would be
Shortest distance 250
Longest distance 3000
Shortest beep time .25
Longest beep time 3
Itâs not doing anything at the moment, because 10 is basically right on top of the item, you need to set it in the thousands so you can approach it from far away.
Nice code, very similar (but better) that what I need for a resource node detector!
See my post above ![]()
Longest needs to be at least 3000 ishâŚ