//This is how to add an element to the beginning of an array:
private ["_array", "_i"];
// Parameters: [array, element]
_array = _this select 0;
// Loop through the array, from right to left, and move everything one step to the right
for "_i" from (count _array) - 1 to 0 step -1 do
{
_array set [_i + 1, _array select _i];
};
//set first element
_array set [0, _this select 1];
_array