For those who don’t know what that means, I’m trying to change a string to a number. Let me explain the background:
I’m currently trying to make a nodegraph creation script to use with pathfinding, so I can make enemies weave inbetween mazes of towers, as I’m doing this with Gmod TD in mind, because I’d prefer gameplay that way.
To avoid having to create the node graph each time, link it, then filter it, especially since all of it can’t be done autonomously, I’m trying to make it so that it saves and then loads the node graph, so all that is left to do is link (I’m using util.TableToKeyValues, so trying to keep the links would crash, since the tables contain each other).
I’ve gotten most of it to work. However, when I loaded the positions, they all turned out as “1”. I think this is due to the fact that it saves it as a string, then tries to load it as a number, because it is then placed inside a vector. So, is there any way to fix this?