I'm just wondering if this is possible, hopefully I can explain what i'm trying to find out.
say I have a game where the 2 players are represented by 2 different arrays, called arPlayer1 and arPlayer2.
Now I have an area that will do something on the arrays. Now instead of putting like an if statement to change between arPlayer1 or arPlayer2 is there a way to do something like concatonate things to equal the array variable?
like arPlayer + playernumber
and if playernumber is equal to 1, the array used would be arPlayer2.
Just curious. I actually just realized it will work better if I use a function. But still would like to know if this can be done.