BUG: Target In Line Of Sight 2D

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

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17379
    Quinesee
    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);

    #17396
    Gavalakis
    Keymaster

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

    Join us on Discord: https://discord.gg/97q2Rjh

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