Background for Skyrim SE
Member of the StorageUtil script
intfunctionIntListAdd(FormObjKey, stringKeyName, intvalue, boolallowDuplicate=true)NativeGlobal

Description

Documentation Comment

Add an int/float/string/Form to a list on form or globally and return
the value's new index. Index can be -1 if we were unable to add
the value.

ObjKey: form to add to. Set none to add global value.
KeyName: name of value.
value: value to add.
[optional] allowDuplicate: allow adding value to list if this value already exists in the list.


Caveats


Parameters

FormObjKey

stringKeyName

intvalue

boolallowDuplicate=true


Examples

Auto-Generated Example

Form myForm__ObjKey
string myString__KeyName
int myInt__value
bool myBool__allowDuplicate

int returnedValue = StorageUtil.IntListAdd(myForm__ObjKey, myString__KeyName, myInt__value, myBool__allowDuplicate)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.