Stop Event On Look UE5

I want to create an object in the scene so that whenever the object is out of the player’s field of vision an event starts and whenever the player is looking at the object the event stops

I found something similar, but it is done with enemies, and I would like to do this for any object in the scene

Any tips?

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

1 Like