Line Trace to a dynamic BP_Actor not working

Hey @Camileytor!

Assuming your float type variable named “Trace Distance” is not too small, preferably over 200, I might have a guess on why nothing’s being drawn. This sentence made me think:

Are you by any chance, checking it out on the level viewport, without pressing that green play icon at the top to run the game? Event Tick executes at runtime.

If that’s not the case tho, here are some steps you can take for further debugging:

  • Use Print String nodes to read the actor’s location. Maybe the Event Graph you were working on isn’t the actor you’re expecting, or the mesh has an offset.
  • If the Print String node doesn’t even get triggered, then the actor that Event Graph belongs to didn’t even spawn yet, or has tick disabled.

Hope these help :innocent:

1 Like