Sir_Skurpsalot Posted March 6, 2020 Share Posted March 6, 2020 Having trouble using arrays like you do in other engines.... the documentation only seems to show how to declare and access specific indexes.trying to use any of the array methods on this page https://torque-3d.readthedocs.io/en/latest/script/class/ArrayObject.htmlgets me an "Unable to find object: ''" warning.How would I declare an array, and then use one of the functions on that page?I would like to be able to do something like this:%testArray = [2,1,6];%testArray.sortD();%testArray.echo(); and have it show [6,2,1]But things don't seem to work like that. Quote Link to comment Share on other sites More sharing options...
Sir_Skurpsalot Posted March 7, 2020 Author Share Posted March 7, 2020 So I figured some things out... there are both arrays and then ArrayObjects in Torque.arrays you can't really do much with except loop through I suppose. ArrayObjects which are declared like %testArray = new ArrayObject(); can use all those functions from the link I posted earlier. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.