Announcement

Collapse
No announcement yet.

How to "take measures" ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to "take measures" ?

    Hi everyone !

    I would like to create a certain type of action with Blueprint.
    I want the player to be able to take measures in the game.
    For example he clicks on the floor an icon appear which is the start of his measure & the second click in the scene is the end of it.
    A line is created between these 2 points and the measure appears above

    Do you think something like that is possible in UE4 and particularly with Blueprint?

    Cheers !

    Denis

    #2
    Hello,
    If you do actor a location minus actor b location / vector length, you'll have your measure.

    Comment


      #3
      Thanks I'll give it a try and post the result here!

      Comment


        #4
        Originally posted by Denis View Post
        Thanks I'll give it a try and post the result here!
        Did you ever figure out how to do this? If so could you share, im trying to do this exact thing

        Comment


          #5
          Fen already explained how to do it. Get the location of the 2 points and use the vector length node.

          Comment


            #6
            Originally posted by matty_matt_mattmatt View Post
            Did you ever figure out how to do this? If so could you share, im trying to do this exact thing
            Yes I made it with Fen's maths it was quite easy ! If you can't succeed how to do it I might send you a screenshot of my blueprint when I get back home tonight, just tell me !

            Comment


              #7
              sorry I haven't been on here for a while but yes please share, I had a crack but couldn't figure it out.

              Comment


                #8
                Here is what I did ! This might not be the best way but it's a start if you want to try !

                Attached Files

                Comment


                  #9
                  Hi Guys,

                  Trying to dot his in VR atm, having trouble with the Widget. How do I get the Widget to receive the number from the blueprint?

                  Comment


                    #10
                    Originally posted by MorphusOne View Post
                    Hi Guys,

                    Trying to dot his in VR atm, having trouble with the Widget. How do I get the Widget to receive the number from the blueprint?
                    In your widget under the construction event, cast to your character blueprint and save the output to a variable. When you go to bind the text value of your text box, all of the text variables saved within your character blueprint will be accessible.

                    EDIT: Video tutorial
                    Last edited by ausernottaken; 05-05-2017, 10:07 PM.

                    Comment

                    Working...
                    X