Draw line between two points: In-game

GetWorld()->LineBatcher->DrawLine(StartLocation, EndLocation, Color.ToFColor(false), SDPG_World, Thickness, LifeTime);

This can work in a packaged game