Background for Skyrim SE
Member of the PapyrusUtil script
float[]functionSliceFloatArray(float[]ArrayValues, intStartIndex, intEndIndex=-1)NativeGlobal

Description

Documentation Comment

Returns a sub section of an array indicated by a starting and ending index.

The default argument "int EndIndex = -1" clamps the to the end of the array. Equivalent of setting EndIndex = (ArrayValues.Length - 1)


Caveats


Parameters

float[]ArrayValues

intStartIndex

intEndIndex=-1


Examples

Auto-Generated Example

float[] myFloatArray__ArrayValues
int myInt__StartIndex
int myInt__EndIndex

float[] returnedValue = PapyrusUtil.SliceFloatArray(myFloatArray__ArrayValues, myInt__StartIndex, myInt__EndIndex)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.