With this function you can set the value of an index in a 1D array to a value. The function requires you to provide a variable that holds the array as well as the index to set and the value to set it to.
array_set(variable, index);
Argument Description variable The variable that holds the array. index The index of the array to set the value for. value The value to set.
N/A
for (var i = 0; i < 10; ++i;)
{
array_set(score_array, i, i*100));
}
The above code will set the first 10 items in the given array to a value.