Background for Skyrim SE
Member of the PapyrusUtilEx script
boolfunctionSliceArrayOnto(stringakHandle_A, stringsScriptName_A, stringsArrayPropertyName_A, stringakHandle_B, stringsScriptName_B, stringsArrayPropertyName_B, intstartIndex, intendIndex=-1, boolreplace=false, boolkeep=true)NativeGlobal

Description

Documentation Comment

Take a portion of the _A array and remove it, merging it with or replacing the _B array depending on the replace parameter.
If keep is true (default) it keeps the portion between the startIndex and endIndex and removes the rest. If keep is false, it removes the portion between the startIndex and endIndex.
Array _A and array _B must be the same type. Remember both arrays must be already initialized.


Parameters

  1. stringakHandle_A

  2. stringsScriptName_A

  3. stringsArrayPropertyName_A

  4. stringakHandle_B

  5. stringsScriptName_B

  6. stringsArrayPropertyName_B

  7. intstartIndex

  8. intendIndex=-1

  9. boolreplace=false

  10. boolkeep=true


Examples

Auto-Generated Example

string myString__akHandle_A
string myString__sScriptName_A
string myString__sArrayPropertyName_A
string myString__akHandle_B
string myString__sScriptName_B
string myString__sArrayPropertyName_B
int myInt__startIndex
int myInt__endIndex
bool myBool__replace
bool myBool__keep

bool returnedValue = PapyrusUtilEx.SliceArrayOnto(myString__akHandle_A, myString__sScriptName_A, myString__sArrayPropertyName_A, myString__akHandle_B, myString__sScriptName_B, myString__sArrayPropertyName_B, myInt__startIndex, myInt__endIndex, myBool__replace, myBool__keep)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.