Skip to content

Vec_SetArray

manuel villagran edited this page Oct 2, 2019 · 1 revision

Vec_SetArray

Vec_SetArray(Vec:vec, index, const array[], start = 0, end = 0, size = sizeof(array))

Sets all the elements of an array at the specified index.

Parameters

  • Vec:vec The vector to set to.
  • index The index of the vector to set at.
  • const array[] The array to set from.
  • start = 0 The starting index of the array.
  • end = 0 The last index of the array to set.
  • size = sizeof(array) The size of the array.

Returns

  • VEC_NOP
    • If vec is readonly.
    • If vec is fixed size and there isn't enought space for the array.
  • VEC_NOALLOC If couldn't allocate more memory for the vector.
  • VEC_OK If success.

Notes

Clone this wiki locally