I am trying to have a ray cast from the player camera and enable player input when it hits an interactable object. When the ray fails to hit an interactable object it should disable player input. It would be nice to be able to easily tag objects as interactable to add them to a list the player can interact with.
The point of this is to have lots of interactable objects that cannot be interacted with unless the player is looking at them and withing raycast range. A collision box doesn’t work so well because a player can stand in the collision zone facing the wrong direction and still interact with the objects.
Here is my first attempt at making this work (I am totally a beginner at blueprints)
I have it intentionally set it up so that if the ray hits anything other than a bookcase than the branch should be true… .but i cant get it away from saying false
I enabled the debugging and its showing me that rays are casting i just cant seem to get them to feedback that they are hitting.
I’m probably doing something wrong or missing things entirely so any help or insight would be greatly appreciated!