Simple enough, but my only difference is that I’m calling this function from a very simple UMG button, so the variables for the player’s location aren’t local. I thought it would be easy enough to make a variable that points to the player blueprint, but the trace is completely dead. I’m using the First Person character from the template, so I’m referencing the First Person Camera component in this blueprint. The trace unfortunately starts at the origin of the world and travels down the X axis in a flat line, not thinking about where my character is a all.
Here are the blueprint and the debug line in the level.
Welp, it works perfectly fine when it’s just in the character blueprint. I originally tried this, but I never got the trace to run because my UI Widget refused to the function when it was in the character. I didn’t try testing it all alone in this BP. I love blueprints, but I always run into problems getting references to outside classes. Now that I know this works, I’ll just find a workaround. Thanks for your help!!