not sure what could be the problem
Hello,
The problem here is that desirednode1 is returning a null value. Typically, a null value occurs when attempting to use a variable that was referencing an asset that does not currently exist, or attempting to access a variable that has not been set yet.
There are a couple of ways to debug this. What you can do is insert an IsValid check to see if the variable is a valid value. You can also insert a Print String node to print the value of the variable to see what it is returning.
Once you have done this, you should be able to narrow down whether it is set or not and begin to determine what could be causing the issue. Typically, running a setup on Tick can be dangerous, especially if the value of the variable is getting reset often because it could be in the process of being set during that particular execution of Tick, which would explain the Accessed None error.
Have a great day
thank you for taking the time and replying I will try it the way you explained i’ll let you know if I’m still having issues.