bf6-portal-mod-types
    Preparing search index...

    Function SetVariableAtIndex

    • Finds or initializes an Array on a provided Variable, and stores a provided value in that Array at the specified index. Just like with Javascript arrays, you don't need to initialize the array or create an empty array first. You can actually set the value at any index, even beyond its current length, and it will be valid.

      Parameters

      • arrayVariable: Variable

        The variable to find or initialize the array on.

      • arrayIndex: number

        The index to store the value at.

      • value: any

        The value to store in the array.

      Returns void

    • Finds or initializes an Array on a provided Variable, and stores a provided value in that Array at the specified index.

      Parameters

      • arrayVariable: Variable
      • arrayIndex: number
      • value: any

      Returns void