Line trace will continue interaction with object even when not looking or within distance

Line trace will continue interaction with the object even when the player is not looking or within distance of the object whilst pressing the interact key.

/ Please see code below /

Hey @WhiteCh3rry!

You need to check your “InRange” Boolean with a branch here:
image
:slight_smile:

1 Like

or just set the obj to null when no hit is detected then validate it before interact

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.