Game Development Community

Newb question with "# #" style arrays..

by Jason Booth · in Torque Game Builder · 01/17/2006 (7:02 pm) · 1 replies

Say you have a angle/velocity pair, which in tscript is returned as "10 20"; how would you get the second of those values? I assumed you could just do something like:

%polar = %this.getlinearvelocitypolar();
%angle = %polar[2];

but this doesn't seem to do the trick..