I am having some trouble with arrays in my game.
first I declare an array as so:
After I try to set its values in just one instruction like this: (I have tried several ways but it dosnt work)
TestArray = (1,2,3,4,5);
TestArray = {1,2,3,4,5};
set_mat(TestArray,(1,2,3,4,5));
set_mat(TestArray,{1,2,3,4,5});I know i can set individual variables using a loop and an index for the array, but I really need to be able to fill the whole array with a set of values using only one instruction (Mabe something similar to what I have tried?)
I know that when declaring the array it works well. Example:
var TestArray[5] = {1,2,3,4,5};But I need it to be initialized empty and filled with a set values later on, (and would prefer to fill it using only one instruction).
P.D.: I have searched the manual for anything related to "array" or "matrix" but found nothing usefull (except for the mat_set() functon, but it seems I cant get it to work).
Any Ideas?