Light Switch Blueprint

Hi guys

quick question i have a light turned on and off from the player being in a trigger zone and hitting e working fine, but is it possible to make it so that the player has to be looking at the light switch to turn it on and off as well as being inside of a trigger zone?

Any help would be appreciated :slight_smile:

Hello,
one way can be using linetrace and check but you can add a smaller box in front of your pawn and reduce the side of the trigger zone too and create the overlap from this component only not the actor which then will automatically mean that player is facing the light and will not generate lot of work to add to your bp.

hey thanks for the response, i have not worked with line trace before do you know of any documentation or tutorials that shows how to achieve what im looking for?

bookmark this : Unreal Engine 4 Documentation | Unreal Engine Documentation you’ll can do all your search by yourself without have to wait for an answer on all the engine documents, documentation/wiki/forums and answerhub.
In this case Butterfly | Unreal Engine Documentation can be helpfull or A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums

but you can add only a box to your pawn too and then from overlap event check if the box is overlaping or not this component and use it as a boolean to activate or not your event.