Background for Skyrim SE
Member of the PO3_SKSEFunctions script
Form[]functionAddItemsOfTypeToArray(ObjectReferenceakRef, intaiFormType, boolabNoEquipped=true, boolabNoFavorited=false, boolabNoQuestItem=false)NativeGlobal

Description

GitHub Wiki Description (PO3's PE)

  • Adds inventory items matching formtype to array, filtering out equipped, favourited and quest items.

Caveats


Parameters

ObjectReferenceakRef

intaiFormType

boolabNoEquipped=true

boolabNoFavorited=false

boolabNoQuestItem=false


Examples

Auto-Generated Example

ObjectReference myObjectReference__akRef
int myInt__aiFormType
bool myBool__abNoEquipped
bool myBool__abNoFavorited
bool myBool__abNoQuestItem

Form[] returnedValue = PO3_SKSEFunctions.AddItemsOfTypeToArray(myObjectReference__akRef, myInt__aiFormType, myBool__abNoEquipped, myBool__abNoFavorited, myBool__abNoQuestItem)

Additional References

View this function on the GitHub Wiki for powerofthree's Papyrus Extender

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.