Change HUD crosshair when targeted on object

Hi,

I’ve made a crosshair HUD in the middle of my screen. It must change color when the player points the crosshair on a specific object. How should I set this up? I’m not sure how the event is called that need to be used.

Thanks in advance.

You need a traceroute (just search for trace). It will provide an “actor other”. You can check that one if it’s the actor you want and change it if it is.

Posting my implementation of the crosshair colour change and shooting form the weapon to the enemy (NOT from the middle of the screen)

First line trace running every 0.1 seconds to measure the distance and find an enemy and written to variables, and the second one is used to shoot.