same thing, just put the code in different actor class.
you can make a new blueprint derived from actor class
get a reference to player character and use a dot product to compare if player is facing this actor
if yes, call your event. if no, call a no longer facing event.
If you follow that tutorial you’ll probably know how to implement the code in another class by the end