Forums › 💬 NodeCanvas › ⚙️ Support › Target In Line Of Sight 2D
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.
Hello. You are right, I also noticed this a couple of days ago and fixed it. Here is the code for the ‘OnCheck’ method of the CheckLOS2D.cs file. Please open up CheckLOS2D.cs and make this change (I can also send you the full file if you want) 🙂
Thanks