Game Development Community

Get length of an array

by Kevin James · in Torque Game Builder · 11/21/2012 (1:08 pm) · 3 replies

Ok, so does TorqueScript really lack a built-in function for getting the length of an array?? That derps so hard.

I'm interested in hearing of your workarounds bsides keeping another variable to keep track of length of an array.

I found some info on SimSet, but still trying to decipher that.

About the author

Computer security, digital forensics, and platform jumper enthusiast. shells.myw3b.net/~syreal/


#1
11/21/2012 (1:11 pm)
Should've done search first, my bad: www.garagegames.com/community/forums/viewthread/6927

Would still like to hear any other ideas.
#2
11/21/2012 (11:42 pm)
You can use the ArrayObject class.
Not sure if it is included in TGB but T3D is open source, you can integrate it yourself.
#3
11/22/2012 (6:34 am)
Cool idea - TGB has SimSet built in.

This is what I ended up doing: www.garagegames.com/community/forums/viewthread/48765/1