Background for Skyrim SE

DbBigActorArray


Inheritance Tree

No indexed scripts extend this script.

Properties

dylbills

Actor[]array0=NONE
Actor[]array1=NONE
Actor[]array2=NONE
Actor[]array3=NONE
Actor[]array4=NONE
Actor[]array5=NONE
Actor[]array6=NONE
Actor[]array7=NONE
Actor[]array8=NONE
Actor[]array9=NONE
Actor[]array10=NONE
Actor[]array11=NONE
Actor[]array12=NONE
Actor[]array13=NONE
Actor[]array14=NONE
Actor[]array15=NONE
Actor[]array16=NONE
Actor[]array17=NONE
Actor[]array18=NONE
Actor[]array19=NONE
Actor[]array20=NONE
Actor[]array21=NONE
Actor[]array22=NONE
Actor[]array23=NONE
Actor[]array24=NONE
Actor[]array25=NONE
Actor[]array26=NONE
Actor[]array27=NONE
Actor[]array28=NONE
Actor[]array29=NONE
Actor[]array30=NONE
Actor[]array31=NONE
Actor[]array32=NONE
Actor[]array33=NONE
Actor[]array34=NONE
Actor[]array35=NONE
Actor[]array36=NONE
Actor[]array37=NONE
Actor[]array38=NONE
Actor[]array39=NONE
Actor[]array40=NONE
Actor[]array41=NONE
Actor[]array42=NONE
Actor[]array43=NONE
Actor[]array44=NONE
Actor[]array45=NONE
Actor[]array46=NONE
Actor[]array47=NONE
Actor[]array48=NONE
Actor[]array49=NONE
Actor[]array50=NONE
Actor[]array51=NONE
Actor[]array52=NONE
Actor[]array53=NONE
Actor[]array54=NONE
Actor[]array55=NONE
Actor[]array56=NONE
Actor[]array57=NONE
Actor[]array58=NONE
Actor[]array59=NONE
Actor[]array60=NONE
Actor[]array61=NONE
Actor[]array62=NONE
Actor[]array63=NONE
Actor[]array64=NONE
Actor[]array65=NONE
Actor[]array66=NONE
Actor[]array67=NONE
Actor[]array68=NONE
Actor[]array69=NONE
Actor[]array70=NONE
Actor[]array71=NONE
Actor[]array72=NONE
Actor[]array73=NONE
Actor[]array74=NONE
Actor[]array75=NONE
Actor[]array76=NONE
Actor[]array77=NONE
Actor[]array78=NONE
Actor[]array79=NONE
Actor[]array80=NONE
Actor[]array81=NONE
Actor[]array82=NONE
Actor[]array83=NONE
Actor[]array84=NONE
Actor[]array85=NONE
Actor[]array86=NONE
Actor[]array87=NONE
Actor[]array88=NONE
Actor[]array89=NONE
Actor[]array90=NONE
Actor[]array91=NONE
Actor[]array92=NONE
Actor[]array93=NONE
Actor[]array94=NONE
Actor[]array95=NONE
Actor[]array96=NONE
Actor[]array97=NONE
Actor[]array98=NONE
Actor[]array99=NONE
Actor[]array100=NONE
Actor[]array101=NONE
Actor[]array102=NONE
Actor[]array103=NONE
Actor[]array104=NONE
Actor[]array105=NONE
Actor[]array106=NONE
Actor[]array107=NONE
Actor[]array108=NONE
Actor[]array109=NONE
Actor[]array110=NONE
Actor[]array111=NONE
Actor[]array112=NONE
Actor[]array113=NONE
Actor[]array114=NONE
Actor[]array115=NONE
Actor[]array116=NONE
Actor[]array117=NONE
Actor[]array118=NONE
Actor[]array119=NONE
Actor[]array120=NONE
Actor[]array121=NONE
Actor[]array122=NONE
Actor[]array123=NONE
Actor[]array124=NONE
Actor[]array125=NONE
Actor[]array126=NONE
Actor[]array127=NONE
intsize=0
intnumberofarrays=128
intmaxsize=16384
intmaxnumberofarrays=128
booliterating=false
DynamicActorArraysactorarrays=NONE
Events
Functions
boolfunctionisBusy()
voidfunctionwaitWhileBusy(floatwaitInterval=0.1)
boolfunctionIsIterating()
voidfunctionwaitWhileIterating(floatwaitInterval=0.1)
voidfunctionwaitForState(ActorakState, floatwaitInterval=0.1)
voidfunctionSetCurrentIndex(intindex)

set the current index (between -1 and size)
for use with getNext, SetNext, GetPrevious, SetPrevious functions

voidfunctionSetCurrentSizeVariables(boolforceSetArray=false)

don't use, for internal use only

intfunctionGetCurrentIndex()

CurrentIndex is used for getNext, SetNext, GetPrevious, SetPrevious functions

CurrentIndex is used for getNext, SetNext, GetPrevious, SetPrevious functions

CurrentIndex is used for getNext, SetNext, GetPrevious, SetPrevious functions

current sub array set internally. (Array0, Array1, Array2 ect. Matches the CurrentSubArrayIndex)
used for getNext, SetNext, GetPrevious, SetPrevious functions

intfunctionGetSize()
intfunctionGetMaxSize()
intfunctionGetNumberOfArrays()
DbBigActorArrayfunctionCreateMultiArray(FormBigArrayForm, intnumberOfSubArrays=1, intsubArraySize=1, ActorfillElement=NONE, boolpersistent=true, boolabInitiallyDisabled=true)Global

create a multi dimensional array with numberOfSubArrays of subArraySize
BigArrayForm should have this script attached and the DynamicActorArrays script attached

DbBigActorArrayfunctionCreate(FormBigArrayForm, intakSize=0, ActorfillElement=NONE, boolpersistent=true, boolabInitiallyDisabled=true)Global

create a big Actor array with a max size of 16384
this script and the DynamicActorArrays script should be attached to the BigArrayForm

boolfunctionresize(intnewSize, ActorfillElement=NONE)
intfunctionFind(ActortoFind)
intfunctionRFind(ActortoFind)
boolfunctionpushBack(Actorelement)
ActorfunctionGetNext()

get the next element in the big array. Add 1 to currentIndex and get the element
if the current index is already at the last valid element (size - 1), goes to the first index in the array (0).

voidfunctionSetNext(Actorelement)

set the next element in the big array. Add 1 to currentIndex and set the element
if the current index is already at the last valid element (size - 1), goes to the first index in the array (0).

Get the previous element in the big array. Subtract 1 to currentIndex and get the element
if the current index is at the first element (0), goes to the last valid index in the array (size - 1).

voidfunctionSetPrevious(Actorelement)

Set the previous element in the big array. Subtract 1 to currentIndex and set the element
if the current index is at the first element (0), goes to the last valid index in the array (size - 1).

ActorfunctionGetAt(intindex)

Set the element at the index in the big array and set CurrentIndex to index (for getNext, setNext, GetPrevious and SetPrevious functions)

boolfunctionSetAt(intindex, Actorelement)

Set the element at the index in the large array and set CurrentIndex (for getNext, setNext, GetPrevious and SetPrevious functions)

boolfunctionInsertAt(intindex, Actorelement)

use sparingly, pushback is much faster.

ActorfunctionPop()

get the last element of the big array and remove it, reducing the size by 1

ActorfunctionRemoveAt(intindex)

remove the Actor at the index, reducing the size by 1 and moving each element after the index back by 1.
returns the Actor that's currently at the index

voidfunctionClear()
voidfunctionDestroy()
int[]functionGetSubIndexesForIndex(intindex)
Actor[]functionGetNthSubArray(intindex, intakSize=0)

get Nth array in this object (0 to 100)
if akSize > 0, set's the size of subArray to akSize before returning

Actor[]functionGetArray(intakSize=0)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.