Multidimensional Arrays as field in a datablock
by Ronald J Nelson · in Torque 3D Professional · 05/24/2014 (2:26 am) · 0 replies
First I am trying to do a two-dimension array of values in the engine that can be accessed from the datablock in TorqueScript.
I know in C/C++ the array is explosion[a][b] and in TorqueScript it is explosion[a,b]. However, when you use this method, the references get all jumbled. I suspect either I have used all of my bits or the array is not being properly matched against. In the latter case, I suspect my addField method which brings me to the question, how would you do a two-dimensional array for a datablock in the addField ?
I know in C/C++ the array is explosion[a][b] and in TorqueScript it is explosion[a,b]. However, when you use this method, the references get all jumbled. I suspect either I have used all of my bits or the array is not being properly matched against. In the latter case, I suspect my addField method which brings me to the question, how would you do a two-dimensional array for a datablock in the addField ?