UMG use entered number to set velocity & angle

So I was thinking of recreating a version on the classic 2d Tanks game, the one with two tanks opposite each other across a valley, where you have to input the desired angle and velocity to fire your projectile.

So my question is how do I get the numbers the player has entered from the UMG to set the angle and velocity of the players projectile ?

Thanks in advance.

Add an Editable Text widget and override its onTextCommitted. You can then spawn projectiles with another button or have the widget dispatch the data to another blueprint - Pawn or Player Controller perhaps.