Announcement

Collapse
No announcement yet.

Get Distance To returns zero

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

    Get Distance To returns zero

    Hi,

    I want to get distance from Enemy blue print to my character. Currently returns 0.

    #2
    You cast from your character to enemy and calculate distance to self, basically you calcultate distance to self.

    Comment


      #3
      Check this. Then how can I get Enemy enemy blue print in my case?

      I have ThirdPersonCharacter blueprint and Enemy blueprint.

      How can I connect Target and Other Target ?

      Attached Files

      Comment


        #4
        One way is to Get all actors from class (enemy), get index (0) for first enemy, connect with Other Actor and target -> self (if you call this from your character).

        Comment


          #5
          thanks works!

          Comment

          Working...
          X