Insert - Array

From the Fallout4 CreationKit Wiki
Revision as of 21:28, 1 March 2018 by imported>Qazaaq (added category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: All Arrays

Inserts a new item to the array at the specified position, expanding it to fit.

Syntax[edit | edit source]

Function Insert(;/element type/; akElement, int aiLocation) native

Parameters[edit | edit source]

  • akElement: The element to insert
  • aiLocation: The location to put the item into

Return Value[edit | edit source]

None

Examples[edit | edit source]

; Insert "Hello" into the index 0 in the array
MyStringArray.Insert("Hello", 0)

; In this case, ["world"] would become ["Hello", "world"]

See Also[edit | edit source]