- Found in:
- SKSE
Description
Wiki Description
Creates an array of Bool values, with the specified length. Be careful when using this function. It is possible to create arrays longer than 128 elements, and size is treated as an unsigned integer. Negative numbers will produce extremely large values, which can cause major issues.
Caveats
CK Wiki - Notes
- As mentioned above, an SKSE bug means that the contents of the array — the values of the bools — are effectively random. This bug should not affect the functions that create arrays of other types. Refer to the Talk page for more details.
Parameters
intsize
CK Wiki Description
The length of the array.
boolfill=false
CK Wiki Description
Unused due to a bug in SKSE. The intention was for each array in the element to be set to this value.
Examples
Bool[] myArray = Utility.CreateBoolArray(129) ; Create an array longer than the Papyrus compiler would allowAuto-Generated Example
int myInt__size
bool myBool__fill
bool[] returnedValue = Utility.CreateBoolArray(myInt__size, myBool__fill)Related Pages
- Utility
- Utility.CreateAliasArray(...)
- Utility.CreateFloatArray(...)
- Utility.CreateFormArray(...)
- Utility.CreateIntArray(...)
- Utility.CreateStringArray(...)
