For line trace click events I’m wondering how you set the distance for how far away the player can be from a certain objects for line traces. I remember changing a setting somewhere where the line trace wouldn’t work unless the player was close enough to the object. So how can I change the distance for a line trace?
Hello Brandon236,
I have provided and example below that may help explain how you could control the length of you line trace.
Example:
As you can see I have gotten the actors location. This will be used as the starting point for the line trace. I have also gotten the forward vector for the actor and if this is multiplied by a float this will give a point that is a distance away equal to the float in the direction that was in the forward direction of the object. I hope that this information helps.
Make it a great day
1 Like