Line Trace Not Showing?
Good Afternoon, I am getting a little project ready for a class, however, I have run into an issue. When I was testing an inventory method, the way I had the line trace set up worked perfectly. Click the E button, the line trace would show, if it hit a specific type of actor, it would put it into the inventory. Simple enough right? Well, I put the Exact same Blueprint into the main project file that the person in charge of the level making provided me, and the line trace will no longer show up. I have tried looking through these forums, on google, youtube as well, for anything that might be able to help me, but I have been unable to figure it out. The set up is exactly the same in the other project with the same blueprint. Any help would be awesome, even ideas of what the issues could be. Thank you!
asked Mar 14 '16 at 10:09 PM in Blueprint Scripting
Instead of running the trace from the camera's BP component directly try using a GetPlayerCameraManager node and from that get the transform component and plug that into the GetWorldLocation and GetForwardVector nodes the line may still be tracing but might not be using the actual angled view of the camera. Also to test if it is firing in the editor during play you can pause and eject after it should have fired to see if it is indeed firing by looking for the debug line and check world location 0,0,0 when things don't know where to spawn/fire they end up there by default.
answered Mar 15 '16 at 02:22 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here