How can I draw a line with a mouse (like on Paint)

I guess it is a very, very tricky question. How can one draw (like we do on Paint) any line (2d or maybe 3d line) in a 3d world with a mouse using bluprints? Can this line have a collision event? Can this line have characteristics like the length of the line, the positions of ends of the line?

Look into splines you should be able to do what you want with them.

Landscape Splines are the tool which works in Unreal Engine Editor. Too bad no one can use them in the “game mode”

There is a spline component which you can spawn and set the spline points via BP dynamically during runtime.