Mod:Creation Kit/Insert - Array

Member of: All Arrays

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

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

Parameters

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

Return Value
None

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


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