
​
​
The Basics
A simple lock on system that displays an icon on 'lock on-able' targets and changes when you have locked on.
​
When you lock on, the camera changes and you strafe around the target until you unlock or move far enough away.
Features
- Automatic camera and movement change when locked on.
- Lock on event can be bound or called.
- Switchable textures for locked on and available to lock on.
- Add a tag to any object 'lockon' which will then be recognized as a lock on-able target.
​
Simple Lock On System UE4
A simple lock on system with UI elements using the HUD class in Unreal Engine 4 - 4.15

Left - Locked on view Right - Available to lock on

Define the minimum distance targets need to be before they are able to be targeted.

How you could implement the lock on event into your player blueprint. You must call the INIT event to set the cameras but you can call the lock on event whenever is appropriate.