I'm trying to store the X and Y co-ordinates of each node when a pathfinder is complete, into an array. The below is what I thought would work, repeat through the nodes and store the values into an array moving along using the loop index. I then output the array to the screen as JSON just to check that the data has been added. However, nothing ever gets stored.