Background for Skyrim SE
Member of the DbMiscFunctions script
FormfunctionGetRandomFormFromRefA(ObjectReferenceRef, int[]TypeArrayFilter=NONE, Form[]ListFilter=NONE, boolTypeFilterHasType=true, boolakListHasForm=true)Global

Description

Documentation Comment

Get random form from Ref's inventory.
If TypeArrayFilter != none, filters for form types in TypeArrayFilter. If TypeFilterHasType == true (default) only allows for types in the TypeArrayFilter. If false, only allows for types NOT in the TypeArrayFilter.
If ListFilter != none, filters for base forms in the ListFilter form array. If akListHasForm == true (default) only allows for forms in the ListFilter form array. If false, only allows for forms NOT in the form array.
Requires SKSE


Parameters

  1. ObjectReferenceRef

  2. int[]TypeArrayFilter=NONE

  3. Form[]ListFilter=NONE

  4. boolTypeFilterHasType=true

  5. boolakListHasForm=true


Examples

Auto-Generated Example

ObjectReference myObjectReference__Ref
int[] myIntArray__TypeArrayFilter
Form[] myFormArray__ListFilter
bool myBool__TypeFilterHasType
bool myBool__akListHasForm

Form returnedValue = DbMiscFunctions.GetRandomFormFromRefA(myObjectReference__Ref, myIntArray__TypeArrayFilter, myFormArray__ListFilter, myBool__TypeFilterHasType, myBool__akListHasForm)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.