Posted 28 February 2012 - 09:10 PM
Yet another question from me to pros. But at least the questions are getting more and more complicated so I guess I'm getting somewhere :D/>/>.
I want to have a list over a four dimensional space (in this case X, Y, Z and Direction), including negative indexes/keys. That list is going to contain a normal table ({0,getHeuristic(position),nil,nil}). I can't use a normal table since it won't accept negative indexes. I can't use a table as a key because the keys are references, when I make a new table it won't be found as a key in the table. And for some reason I can't use "openNodes = {0={0={0={0={0,getHeuristic(position),nil,nil}}}}}".
Thank you for your time.
I want to have a list over a four dimensional space (in this case X, Y, Z and Direction), including negative indexes/keys. That list is going to contain a normal table ({0,getHeuristic(position),nil,nil}). I can't use a normal table since it won't accept negative indexes. I can't use a table as a key because the keys are references, when I make a new table it won't be found as a key in the table. And for some reason I can't use "openNodes = {0={0={0={0={0,getHeuristic(position),nil,nil}}}}}".
Thank you for your time.