Background for Skyrim SE
Member of the StorageUtil script
intfunctionIntListResize(FormObjKey, stringKeyName, inttoLength, intfiller=0)NativeGlobal

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

  1. FormObjKey

  2. stringKeyName

  3. inttoLength

  4. 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)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.