How to draw a line using the cursor?

Hey.

I’m not much more of an amateur when it comes to blueprint scripting but i’m trying to learn some new things.
I’m working on a personal project which I want to feature terminal based minigames.
I have the basics set up such as the widget blueprint and additing/removing it from viewport, however when it actually comes to creating the minigame that I have in mind, firstly i do not know how to create such a minigame with blueprints, secondly i cannot seem to find any documentation or youtube tutorials about such a specific matter.

Basically, what I want to do is have a minigame where once the player accesses the terminal, they have to connect a cable from one point to another. The problem is, being able to draw the line (wire) in blueprints is what I have no idea how to accomplish.

Do any of you know how to do this or have any tutorials/documentation to hand?

Many thanks

  • Matt

2d wire on the terminal surface or 3d wire in the world?

2D wire on the terminal surface.
Just trying to create a simple connect the wire minigame.

You can draw a line on HUD which is appropriate if it will overlay straight over your gameplay. On the other hand if you’re using UMG 3d widgets you may want to override the OnPaint method instead as shown in this answer.