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...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.