BUG: Target In Line Of Sight 2D

Forums 💬 NodeCanvas ⚙️ Support BUG: Target In Line Of Sight 2D

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15292
    joshua.norvelle@gmail.com
    Participant

      Hi,
      I noticed that the optional Save Distance As variable is never getting set in the script so it is never available in the graph.

      I added this to the OnCheck() function to fix locally:
      saveDistanceAs.value = Vector2.Distance(LOSTarget.value.transform.position, agent.position);

      #15293
      Gavalakis
      Keymaster

        Hello. Thank you, that was an omission 🙂 I will make the change too for the next update.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.