Have a look at a customizable targeting system for Unreal Engine 4 which can be used for multiplayer games.
This plug-and-play component is easy to use and features a number of parameters for customization.
The system allows users to target three categories:
- the most ideal actor to target immediately;
- actors to the left of the targeted actor;
- actors to the right of the targeted actor;
- Multiplayer Ready;
- Use Actor Rotation/Control Rotation;
- Error Tolerance For Sorting Targets To The Left And Right;
- Use Delta Rotation Or Arc-Tan Difference Algorithms;
- Auto-Switch Targets On Perception Failure;
- Auto-Switch Targets If "Actor To Target Is Invalid"
You can learn more and get the system here.