Skip to content

Repository files navigation

🧿 The Witcher Mechanic

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.


🎮 Features

  • 🔍 Enemy & magic detection within a defined radius
  • 🧿 Medallion toggles between enemy/magic sensing
  • 🛠️ Blueprint–C++ hybrid logic using AMedailon and ATheWitcher classes
  • 🎯 Visual debug feedback (spheres)
  • 🔊 Extendable for sound, particles, UI integration

🛠 Requirements

  • Unreal Engine 5 installed
  • Windows or macOS system with UE5 support
  • Basic understanding of Blueprints and/or C++

🚀 Installation

  1. Clone the repo:
git clone https://github.com/Yushikuni/TheWitcherMechanic.git
  1. Open the .uproject file in Unreal Engine 5
  2. Press Play to test the mechanic in the level

⌨️ Controls & Usage

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 toggle
  • ATheWitcher — player actor that owns and activates the medallion

📸 Screenshots & Demo

Medallion Effect
Click to watch the demo on YouTube. *The Witcher Medallion in action, detecting an enemy.*
OR here:

https://youtu.be/lN4yqSardvc?si=5PvGqolBlZs6KkZK

🔮 TODO

  • 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

🙋‍♀️ Author

Created by Yushikuni Feel free to fork, star ⭐, and use this mechanic in your own gameplay prototypes!

📬 Contact: huskvenimrah@gmail.com

The Unreal Engine dev community ❤️ Gameplay inspiration from The Witcher 1 & 3 Assets used under fair-use/educational license

About

Distance-based enemy/magic detection mechanic for UE5, inspired by The Witcher medallion. Reusable core plugin — signal strength scales with proximity, no game-specific logic.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages