- Found in:
- PapyrusUtil
Description
Documentation Comment
Sizes the given list to a set number of elements. If the list exists already it will be truncated
when given fewer elements, or resized to the appropriate length with the filler argument being used as
the default values
Returns the number of elements truncated (signed) or added (unsigned) onto the list.
ObjKey: form to find value on. Set none to find global list value.
KeyName: name of list.
toLength: The size you want to change the list to. Max length when using this function is 500.
[optional] filler: When adding empty elements to the list this will be used as the default value
Parameters
FormObjKey
stringKeyName
inttoLength
intfiller=0
Examples
Auto-Generated Example
Form myForm__ObjKey
string myString__KeyName
int myInt__toLength
int myInt__filler
int returnedValue = StorageUtil.IntListResize(myForm__ObjKey, myString__KeyName, myInt__toLength, myInt__filler)