Crosshair detection

Hi guys I’m looking for a way that when my crosshair detects an enemy it changes colour. At the moment I’m using an image as my crosshair not sure if this is right any help would be appreciated cheers

You should use “Line Trace” and check results. If result enemy, you should change widget or hud color. That’s all.