Mod:Lighthouse Papyrus Extender/Array

Array Functions
{| style="width:100%;"
 * valign="top" style="width: 85%;" |

CreateArrayFloat

 * Creates a float array of size  and fills it with
 * Allows you to bypass the 128 element limit that base Papyrus has
 * Max  before the game crashes is unknown; but arrays were able to be read and written to even if   was in the millions

float[] Function CreateArrayFloat(int aiArrSize, float afArrFill) global native

CreateArrayInt

 * Creates an integer array of size  and fills it with

int[] Function CreateArrayInt(int aiArrSize, int aiArrFill) global native

CreateArrayString

 * Creates a String array of size  and fills it with

String[] Function CreateArrayString(int aiArrSize, String asArrFill) global native

ResizeArrayInt

 * Will increase or reduce the size of the integer array  and fill the new elements with   if the size was increased

int[] Function ResizeArrayInt(int[] akArrayToResize, int aiArrSize, int aiArrFill) global native

SortArrayFloat

 * Sorts the float array  depending on the value of
 * Negative  is equivalent to the last position of the array
 * Sorting includes  and

float[] Function SortArrayFloat(float[] akArrayToSort, bool abSortDescending, int aiStartIndex, int aiEndIndex) global native

SortArrayInt

 * Sorts the int array  depending on the value of

int[] Function SortArrayInt(int[] akArrayToSort, bool abSortDescending, int aiStartIndex, int aiEndIndex) global native

SortArrayString

 * Sorts the String array  alphabetically depending on the value of

string[] Function SortArrayString(string[] akArrayToSort, bool abSortDescending, int aiStartIndex, int aiEndIndex) global native


 * valign="top" style="width: 15%;"|


 * }