Line Trace from screen center to world
Hey everybody, I'm currently doing a small amateur FPS game and I'm doing right now firing system and I would like to trace from my crosshair (Which is in the center of my screen) to the world.
I tried to use the "Convert Mouse Location to World Space" function but it doesn't work, my linetrace isn't on my crosshair.
Here is my current script for line trace :
asked Oct 06 '14 at 11:23 AM in Blueprint Scripting
This is what you really want.
answered Jul 10 '18 at 02:10 PM
Get the camera's location and rotation like so;
5000 is the distance it fires the trace. You can set it to any distance you like.
answered Oct 06 '14 at 12:16 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here