- Found in:
- SKSE
Description
Wiki Description
Resizes an already existing array of Int values to the specified length. (This function requires SKSE)
Be careful when using this function. It is possible to create arrays longer than 128 elements, and size is treated as an unsigned 32-bit integer. Do not exceed a length of 2^31. SKSE's DLL can handle a max length of 2^32 however, Papyrus cannot. Negative numbers will produce extremely large values, which can cause major issues.
Caveats
CK Wiki - Notes
- No need to actually create an array with new, declaring an array variable is enough. However, be sure to "Create" or "Resize" the array before trying to read/set any element values in it, or you will get an error for trying to access an uninitialized array.
Parameters
int[]source
CK Wiki Description
an existing array of int values.
intsize
CK Wiki Description
new size of the array.
intfill=0
CK Wiki Description
a value to fill empty elements of the array with, if the array being resized is longer than the source array.
Examples
No human-generated examples found for this function.
Auto-Generated Example
int[] myIntArray__source
int myInt__size
int myInt__fill
int[] returnedValue = Utility.ResizeIntArray(myIntArray__source, myInt__size, myInt__fill)