- Joined
- Nov 25, 2008
- Messages
- 76
I read the Array tutorial but there are a couple of things I don't understand.
For instance, is it possible to dynamically create an array and fill it in game? In all the examples I have seen, you manually define the objects inside the array when you create it. However, in my map I require the game to store x amounts of data in 1 array, as the game goes on. Can this be done?
Also, is there a function that gets the size (or length) of an array so I can add a variable to the end of the array? [Like Getsize(A1) ] I know I'm talking more about lists here than an array but is this possible (other than defining another global integer variable as the "size" of the array)?
What I mean by size is how many variables are currently stored in the array, not the maximum value that can be put in.
For instance, is it possible to dynamically create an array and fill it in game? In all the examples I have seen, you manually define the objects inside the array when you create it. However, in my map I require the game to store x amounts of data in 1 array, as the game goes on. Can this be done?
Also, is there a function that gets the size (or length) of an array so I can add a variable to the end of the array? [Like Getsize(A1) ] I know I'm talking more about lists here than an array but is this possible (other than defining another global integer variable as the "size" of the array)?
What I mean by size is how many variables are currently stored in the array, not the maximum value that can be put in.
Last edited: