Download

How to get the player look value

Hello everyone!
I need to enable an action when player look at the floor, but I don´t know how to do this.
I have the floor (BluePrint Class) with a triger in it and want to start with an “OnBeginOverlap” event. Once overlapping I want to get the player looking axis to enabled my action between 90 and 60 degrees, for example.

Thank you so much!

Usually when dealing with looking at a direction you want to use ray casts, from whatever component on the character (head?) to whatever distance and direction (in your case a straight line) you’re trying to detect.

https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseRaycasts/Blueprints/index.html

Hopefully that helps!

I will check it out. I hope I find the solution.

Thank you!