A distance-based detection mechanic for Unreal Engine 5, inspired by the medallion system from The Witcher series. The medallion senses nearby enemies or magic within a radius, with signal strength scaling by proximity — the closer the threat, the stronger the signal.
Built to be a clean, reusable detection system — not tied to any specific game project. Fork it, extend it, or drop it into your own prototype.
- 🔍 Enemy & magic detection within a defined radius
- 🧿 Medallion toggles between enemy/magic sensing
- 🛠️ Blueprint–C++ hybrid logic using
AMedailonandATheWitcherclasses - 🎯 Visual debug feedback (spheres)
- 🔊 Extendable for sound, particles, UI integration
- Unreal Engine 5 installed
- Windows or macOS system with UE5 support
- Basic understanding of Blueprints and/or C++
- Clone the repo:
git clone https://github.com/Yushikuni/TheWitcherMechanic.git- Open the .uproject file in Unreal Engine 5
- Press Play to test the mechanic in the level
| Key | Action |
|---|---|
Y |
Trigger medallion detection pulse |
Tab |
Toggle detection mode (enemy ↔ magic) |
Play |
Start the detection system in the editor preview |
To integrate the system into your own project, reference:
AMedailon— detection logic, signal strength calculation, mode toggleATheWitcher— player actor that owns and activates the medallion
Click to watch the demo on YouTube. *The Witcher Medallion in action, detecting an enemy.*
OR here:
https://youtu.be/lN4yqSardvc?si=5PvGqolBlZs6KkZK
- Distance-based detection signal (medallion strength scales with proximity)
- Enemy/Magic detection mode toggle
- Sound FX & particle feedback (currently debug text only)
- Cooldown system for medallion pulses
- Package as a proper UE5 Plugin with public A
Created by Yushikuni Feel free to fork, star ⭐, and use this mechanic in your own gameplay prototypes!
📬 Contact: huskvenimrah@gmail.com